How do I turn off WordPress errors and just have regular old php errors?

Question

If I use the constants, I still get the WP errors. I don’t want WP shadowed box and custom messages and all that. Just plain old PHP errors.

In wp-config.php I have this:

define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);

 ini_set("display_errors", true);
 ini_set("error_reporting", E_ALL & ~E_STRICT & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED);

but I still get the formatted wordpress errors.
enter image description here

I want just the normal php errors:
enter image description here

0
Doug Cassidy 2 weeks 2023-03-11T20:14:12-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse