How to enable WordPress Debug log?

General Viewed: 3266

“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 su*****@we******.io

 

6 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

  2. Jefferson Duarte says:

    Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the welaunch-framework domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/n9a3a65/public_html/wp-includes/functions.php on line 6114

Leave a Reply

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