How to enable WordPress Debug log?

General Vu: 1297

“This site is experiencing technical difficulties” – if you see this error then a PHP fatal error has occurred. Normally you will see this in your error log files, but if you do not know where to find them or how to deal with them, we will show you how.

We need the debug log in order to help you for this kind of issues, so this is how you enable wp debug log:

  1. Go to your wp-config.php file and add these lines
    define( 'WP_DEBUG', true);
    define( 'WP_DEBUG_DISPLAY', false );
    define( 'WP_DEBUG_LOG', true );

    This will enable wp debug and log, but stops displaying issues on your website.

  2. Next revisit the site where you saw the error, so that the debug.log will be created
  3. You will find the debug.log file in your wp-content folder: wp-content/debug.log
  4. Send us the log file to [email protected]


Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *