“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:
- 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.
- Next revisit the site where you saw the error, so that the debug.log will be created
- You will find the debug.log file in your wp-content folder: wp-content/debug.log
- Send us the log file to [email protected]
3 thoughts on “How to enable WordPress Debug log?”
I followed all the steps above but there is no debug file in the wp-content folder.
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
You need to increase your memory_limit in your php configuration.