WP_DEBUG is off but messages still show

Q: Date/Time this occurred (Provide your time zone also)
A: Feb 9 2021 - 7:36PM MST

Q: DevKinsta Version
A: Latest

Q: OS Version
A: Windows 10

Q: Docker Desktop Version

Q: Were any error codes or messages observed? If so, what were they?
A: Debugging is showing even though WP_DEBUG is off.

Q: Detailed Description of the Problem
A: On one of my pages debugging messages are still appearing despite WP_DEBUG being false.


Hi @aidenberzins . Would you happen to have WP_DEBUG inserted anywhere else? Perhaps in your themes function.php file?

No, it is not defined elsewhere. I did an entire file search.

It appears when you toggle the switch the
wp-config.php is either all true or all false.

But when the settings are as follows the errors no longer display on the front end.

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
1 Like

So when you toggle between it appears to change the value to strings rather than booleans. So this does seem to be a bug.

1 Like

Thanks for reporting this! It does appear to be a bug. I’ll let you know when this is solved :slight_smile: