How to Enable WP_Debug | Bluehost Support
Support
  1. bluehost knowledge base

How to Enable WP_Debug

Overview

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 enabling debugging 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.

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

If you need further assistance, feel free to contact us via Chat or Phone:

  • Chat Support - While on our website, you should see a CHAT bubble in the bottom right-hand corner of the page. Click anywhere on the bubble to begin a chat session.
  • Phone Support -
    • US: 888-401-4678
    • International: +1 801-765-9400

You may also refer to our Knowledge Base articles to help answer common questions and guide you through various setup, configuration, and troubleshooting steps.