[wp-trac] [WordPress Trac] #35560: Use of undefined constant DB_USER - assumed 'DB_USER'
WordPress Trac
noreply at wordpress.org
Thu Jan 21 18:18:42 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:
-------------------------------+------------------------------
Comment (by mariusvw):
They are not visible on a site but they are on our development platform.
It doesn't only occur when there is no wp-config.php.
It also occurs when you do have a wp-config.php but still have to run the
setup of wordpress.
We have error reporting on -1 and catch all errors with an exception.
We do this due we want code without any possible error.
If you want to see an example of the implementation of this, have a look
at
https://github.com/mariusvw/devtools/blob/master/etc/php/inc/auto_prepend.php
This forces you to fix every error that exists :-)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35560#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list