Home Knowledge Base Getting information and Debugging How to get error_log in case when you’re not familiar with webhosting/webserver management?

Open your /wp-config.php file and look for

define(‘WP_DEBUG’, false);

Change it to:

define(‘WP_DEBUG’, true);

Scroll down and add these lines, just before ‘stop editing here’:

ini_set('log_errors',TRUE);
ini_set('error_reporting', E_ALL);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');

This will create an error_log.txt file in your site’s root directory after the next error on your site.

Please send contents of the error_log.txt file to use with the support request.

Warning: the log file contains sensitive data of your server which you don’t want to share with the world. So after checking log file and sending some information from it to the support, you should delete it and rollback the changes which you’ve made to the wp-config.php file.