Occasionally, your site may encounter a plugin conflict or other difficulty that prevents it from loading or accessing the Administration Dashboard. WordPress error logs may assist you in determining the source of problems on your site; but, in order to generate those logs, you must enable a feature called Debugging Mode, which by default is disabled for security reasons. Debugging mode will generate a file containing a list of all error messages encountered on your site.This tutorial will walk you through the process of enabling debugging in WordPress.
To enable debugging in WordPress, follow these steps:
In the FILES section of the cPanel home screen, click File Manager:
In the left sidebar, click the name of the directory that you want to open. The directory's contents appear in the right pane.
Locate the wp-config file in the WordPress installation directory:
Open the wp-config.php file in your preferred IDE or text editor.
Add the following lines at the end of the file:
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true );
Save the changes. WordPress will now log all errors in the wp-content folder in a file called debug.log. Keep in mind that debug mode will not prevent the dreaded white screen of death, but it will assist you in identifying the offending plugin or theme.
For more information about error logging and file manager, please visit:
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.