Start a project

How to enable WordPress Debug log?

GeneralViewed 4542 times

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

Questions & answers (6)

  1. Jefferson DuarteDecember 16, 2024

    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

  2. DanielDecember 16, 2024

    We have a fix for this already prepared coming in next version.

  3. JoshFebruary 19, 2024

    Please can you do this? I’m not sure how this is done. Thank you

  4. eraldo hoxhaOctober 12, 2022

    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

  5. DanielOctober 13, 2022

    You need to increase your memory_limit in your php configuration.

  6. claytonOctober 16, 2021

    I followed all the steps above but there is no debug file in the wp-content folder.