[wp-trac] [WordPress Trac] #35560: Use of undefined constant DB_USER - assumed 'DB_USER'

WordPress Trac noreply at wordpress.org
Thu Jan 21 15:37:57 UTC 2016


#35560: Use of undefined constant DB_USER - assumed 'DB_USER'
-------------------------------+------------------------------
 Reporter:  mariusvw           |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Database           |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by johnbillion):

 * keywords:   => reporter-feedback
 * version:  4.4.1 =>


Comment:

 Thanks for the ticket @mariusvw.

 This bug is indeed valid, but if you do not have a `wp-config.php` file
 then WordPress' default `error_reporting()` state means
 [https://core.trac.wordpress.org/browser/tags/4.4.1/src/wp-
 includes/load.php?marks=300#L286 PHP notices are not reported]. Under what
 situation do these notices get reported? I was only able to get PHP to
 report these errors by editing the above to `error_reporting( E_ALL )` or
 by adding a `wp-config.php` file that did not contain database credentials
 but did contain `define( 'WP_DEBUG', true )` which is a strange
 configuration.

 The underlying problem should be fixed, but I'm still interested in how
 these errors are visible on your site.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35560#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list