I’m going to set WP_Debug to true instead of false.
Identifying the broken plugin or theme
If you were trying to install or update a specific addon, you can skip this step. But if you were running a bulk update, or an automatic update happened while you were away, you may be wondering which plugin or theme failed has broken down.
You can figure this out by enabling debug mode in WordPress:
- Login to an FTP client of your choice or our web based file manager (found in the client area and control panel).
- Navigate to your website folder (which is
htdocs
for your first domain andexample.com/htdocs
for addon domains and subdomains). - Open the file
wp-config.php
and find the line which containsWP_DEBUG
. On that line, replacefalse
withtrue
and save the file. - Refresh the page on your website and you should now see error messages.
In these error messages, you should search for texts like wp-content/plugins/
and wp-content/themes/
. The word right after that is the folder of the plugin or theme which is generating the error, which is generally the broken plugin or theme.
Don’t forget to disable WP_DEBUG
after you’ve seen the error message. The option should not be left enabled for live sites, because it might expose sensitive information.
it says refresh page and I should refresh page and see errors. Where do I find it? And after that, How do I disable WP_DEBUG so it won’t expose information?