Debugging WordPress helps you quickly find and fix errors and warnings in your WordPress site code, plugins and themes.

By default, WordPress does not show warnings or errors. Enabling debugging is easy with DomainsFoundry WordPress Manager and also possible through editing your website’s wp-config.php file. We outline both methods below.

Steps to enable WordPress debug mode in WordPress Manager

  1. Log in to cPanel.
  2. Click WordPress Manager by App Installer.
    WordPress Manager button in cPanel
  3. Click the down arrow to open your website’s options.
    Opening WordPress Manager website options
  4. Select Enable under Debug Mode.
    Enable Debug Mode in WordPress Manager

Steps to enable WordPress debug mode in wp-config.php

  1. Open wp-config.php in your code editor or in cPanel File Manager
  2. Add the following line
    define( 'WP_DEBUG', true );
  3. Save your changes

Your WordPress site will now display any errors, notices and warnings from your plugins, themes and code.

For security we strongly recommend disabling WP_DEBUG once you’ve finished debugging.