• Lately I have been getting the following errors:

    [10-Aug-2018 01:38:06 UTC] PHP Warning: Use of undefined constant DB_USER – assumed ‘DB_USER’ (this will throw an Error in a future version of PHP) in /path/wp-includes/load.php on line 404
    [10-Aug-2018 01:38:06 UTC] PHP Warning: Use of undefined constant DB_PASSWORD – assumed ‘DB_PASSWORD’ (this will throw an Error in a future version of PHP) in /path/wp-includes/load.php on line 404
    [10-Aug-2018 01:38:06 UTC] PHP Warning: Use of undefined constant DB_NAME – assumed ‘DB_NAME’ (this will throw an Error in a future version of PHP) in /path/wp-includes/load.php on line 404
    [10-Aug-2018 01:38:06 UTC] PHP Warning: Use of undefined constant DB_HOST – assumed ‘DB_HOST’ (this will throw an Error in a future version of PHP) in /path/wp-includes/load.php on line 404

    Recently I have updated my server to PHP 7.2. Is this not yet supported by WordPress and will these errors be fixed later on?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Look at your wp-config.php file. On the line that defines DB_USER, is that set off in primes, like

    define( 'DB_USER', 'something' );

    The same for DB_NAME, DB_HOST, etc.

    Thread Starter vespino

    (@vespino)

    It says: define(‘DB_USER’, ‘something’);

    This is inserted by WP itself. Should I do something to change this?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    That’s correct.

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you can install plugins, install “Health Check”: https://www.ads-software.com/plugins/health-check/ On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use of undefined constant DB_USER’ is closed to new replies.