1. bluehost knowledge base

How to Enable WP_Debug

Debug mode is highly useful in troubleshooting a WordPress site that is showing errors or not working correctly. Enabling debug will help you identify the cause of the issue.

This article will walk you through how to enable debug using the WP-config file.

To begin, you will need to access the Bluehost Control Panel.

  1. Click the Advanced tab from the side navigation menu to the left.
  2. Locate the File Manager tool under the Files section.
  3. Navigate to the broken website's folder.

    Note: If this is not the primary domain, identify which folder the broken website is being hosted in.

  4. Locate the wp-config.php file.
  5. Right-click this file, then choose the edit option.
  6. Scroll down to find the define( WP_DEBUG, setting. Update this to reflect:

    define('WP_DEBUG', true);

  7. Click the Save button when finished.

Open the website again to generate the error, then check error logs.

Note: Make sure to set the value back to False when you have finished troubleshooting if you changed the setting.