|

How to enable debug log?

To enable debug set WP_DEBUG and WP_DEBUG_LOG to true in your wp-config.php file:

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );

// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );

// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );

Once you’ve done that – all further errors will be logged in wp-content/debug.log file. Please provide our support agents with this file AFTER you enabled debug and replicated the error.

!! IMPORTANT: Once the issue is fixed – remove these debug settings from wp-config.php

More information about debugging in WordPress can be found by clicking here

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

On this page