I am running WordPress on a WAMP stack and I’m trying to debug a WSOD error, which I think is a PHP error, as I have tried disabling all my plugins and themes and they don’t seem to be the problem.

I’ve got this in my wp-config :

 define('WP_DEBUG', true);
 if (WP_DEBUG) {
      define('WP_DEBUG_LOG', true);
      define('WP_DEBUG_DISPLAY', true);
      @ini_set('display_errors', 0);
 }

which I found online. When I reload the page I don’t get any error messages, and when I check for wp-content/debug.log it doesn’t exist. I can’t find any error logs anywhere else either. How can I find out what is going wrong?

Thanks for any help.

1 Answer
1

Make things simpler by using this in wp-config.php:

define( 'WP_DEBUG', true );             /** debug on */
define( 'WP_DEBUG_LOG', true );         /** log enabled */
define( 'WP_DEBUG_DISPLAY', true);      /** display enabled */

The @ini_set('display_errors', 0); may be breaking the WP_DEBUG error display and logging by calling the native PHP error reporting at the same time.

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *