Choose another country or region to see content specific to your location and shop online.
United States
USA

Enable debug errors in WordPress

Setting WP_DEBUG to true in your wp-config.php will enable the debug mode throughout WordPress. This will cause all PHP errors, warnings, and notices to be displayed.

It’s highly recommended that WP_DEBUG and WP_DEBUG_LOG be set to true during development to catch errors that might not otherwise show when set to false. This is especially useful during the development of custom modules as the css/js for the current layout will be refreshed on each page load instead of cached as it is by default.

  1. Edit the wp-config.php for your website. (cPanel / Plesk / Web & Classic / Managed WordPress / VPS)
  2. Changedefine(‘WP_DEBUG’, false);todefine(‘WP_DEBUG’, true);
  3. On the following line, typedefine(‘WP_DEBUG_LOG’, true);
  4. Save your changes.
  5. Using an Internet browser, visit your site to trigger the debugging log.
  6. Using your hosting account’s editor, open /wp-content/debug.log.
  7. Review the contents of the debug log to identify the problem to a specific plugin, theme, or configuration option that might be causing a problem.

 Note: For Managed WordPress Pro plans, setting WP_DEBUG to true will completely disable the CDN(content delivery network) to help with troubleshooting the website. You can re-enable the CDN by setting WP_DEBUG to false.

Once you are done with development or troubleshooting you should set WP_DEBUG and WP_DEBUG_LOG to false, then remove the debug.log file.

New customer

New to ELITEWEB.Co? Create an account to get started today.

Registered users

Have an account? Sign in now.

Reseller login

If you’re a reseller, use the button below to sign in. (your reseller account is separate to your regular account)

Reseller login

If you’re a reseller, use the button below to sign in. (your reseller account is separate to your regular account)

New customer

New to ELITEWEB.Co? Create an account to get started today.

Registered users

Have an account? Sign in now.