You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
As noted in #3 (comment)
wp-config.php
must be created manually during installation if it does not already exist. This is due to howrequire_wp_db
inwp-includes/load.php
loadswp-content/db.php
only when it is first called. However, the logic inwp-admin/setup-config.php
assumes it can unset$wpdb
then callrequire_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.
The text was updated successfully, but these errors were encountered: