How to enable WordPress Debug log?

General Viewed: 2888

“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]

 

4 thoughts on “How to enable WordPress Debug log?

  1. eraldo hoxha says:

    This is the error that i talked about
    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 11240990 bytes) in /home/vleraartcom/public_html/wp-content/plugins/woocommerce-pdf-catalog/vendor/mpdf/mpdf/src/Mpdf.php on line 26006

Leave a Reply

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