Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wordpress setup not fully supported (wp-config.php required) #4

Open
kevinoid opened this issue Jul 13, 2016 · 0 comments
Open

Wordpress setup not fully supported (wp-config.php required) #4

kevinoid opened this issue Jul 13, 2016 · 0 comments

Comments

@kevinoid
Copy link
Collaborator

As noted in #3 (comment) wp-config.php must be created manually during installation if it does not already exist. This is due to how require_wp_db in wp-includes/load.php loads wp-content/db.php only when it is first called. However, the logic in wp-admin/setup-config.php assumes it can unset $wpdb then call require_wp_db to reinitialize the database connection. This does not work for pg4wp since it is not reloaded and thus does not replace the $wpdb value with its own.

Although pg4wp could work around this with some monkey-patching, the better solution would be to raise the issue with the Wordpress developers for a proper fix in Wordpress core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants