[wp-trac] [WordPress Trac] #45446: /wp-admin/setup-config.php PHP Notice: Use of undefined constant
WordPress Trac
noreply at wordpress.org
Thu Nov 29 07:21:49 UTC 2018
#45446: /wp-admin/setup-config.php PHP Notice: Use of undefined constant
--------------------------+-----------------------------
Reporter: nextendweb | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.9.8
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When the WordPress site already installed and you try to access the /wp-
admin/setup-config.php it display a message:
{{{
The file wp-config.php already exists. If you need to reset any of the
configuration items in this file, please delete it first. You may try
installing now.
}}}
Also in our error log we get a notice that there was a use of an undefined
constant from require_wp_db() function. /wp-admin/setup-config.php does
not load the wp-config.php, but loads wp-settings.php which tries to
initialize the database with the undefined constants.
{{{#!php
<?php
$wpdb = new wpdb( DB_USER, DB_PASSWORD, DB_NAME, DB_HOST );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45446>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list