Enabling debugging mode in WordPress
To enable debugging in WordPress, follow these steps:- Log in to cPanel.
-
📘 Note If you do not know how to log in to your cPanel account, please see this article.
-
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:
- 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.