Turning Off DEBUG

WordPress has built-in settings that help you debug your website. These options are usually intended for use by developers only, and the debug log output should not visible to website visitors.

Note: This is an advanced tutorial. You will be editing a core WordPress file. Please make a back-up of the file before editing it, so you can restore a clean copy if you make a mistake.

What You’ll Need:

  • Access to your wp-config.php file (use FTP or your web host’s Control Panel’s File Manager to find it)

How To Do It:

  1. Always make a back up of your site/the file you’re editing before engaging in the next steps
  2. Locate your wp-config.php file. It’s in the main directory for your site.
  3. Find the line that mentions “WP_DEBUG”. If it’s currently true, change it to false. If it’s not in the file at all, add it in:
define('WP_DEBUG', false);
  1. We also recommend adding these lines right below it:
ini_set('error_reporting', E_ALL );
define('WP_DEBUG_DISPLAY', false);
  1. Save the file