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.

Bluerock

  1. Click the Advanced tab from the side navigation menu to the left.
  2. Locate the File Manager tool under the Files section.
    rock-file-manager
  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.
    rock-wp-config-php
  5. Right-click this file, then choose the Edit option.
    rock-filemanager-edit
  6. New windows appear and click the edit button again.
  7. Scroll down to locate the define( 'WP_DEBUG', setting.
    legacy-and-rock-wp-debug

    Make sure to update the define( 'WP_DEBUG', setting to reflect this:

    define('WP_DEBUG', true);

  8. Click the Save Changes button when finished.

Legacy

  1. Click the cpanel tab from the navigation menu that stretches across the top of your screen.
  2. Locate the File Manager tool under the files category.
    legacy-file-manager
  3. Choose to open Web Root and Show hidden files, then click the Submit button.
    legacy-file-show-hidden-files
  4. 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.

  5. Locate the wp-config.php file.
    rock-wp-config-php
  6. Right-click this file, then choose the Edit option.
    rock-filemanager-edit
  7. New windows appear, and click the edit button again.
  8. Scroll down to locate the define( 'WP_DEBUG', setting.
    legacy-and-rock-wp-debug

    Make sure to update the define( 'WP_DEBUG', setting to reflect this:

    define('WP_DEBUG', true);

  9. Click the Save Changes 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.