Enable Error Reporting in WordPress

I often find myself trying to nut out a problem on a WordPress website and instead of getting some useful errors, I simply get a blank screen or the page loads without telling me why my code doesn’t work! Enter the below code into your WP-CONFIG.PHP file when working in a local environment to get some useful error reporting to display on your WordPress Project.  Be sure to disable these when moving to your live server.

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', true);
@ini_set('display_errors', 1);

Get a Free QuoteToo hard basket? Call us! ×
  • Your details
  • Project details
  • More details