WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If WP_DEBUG is not set, as I understand it, you should never ever see warnings. But on some sites on some servers, I'm still seeing a few. Not all the warnings that would be displayed if WP_DEBUG was set, but a select few.

I've tried changing the error level in php.ini, but that seems to have no effect on whether warnings appear or not, but they do appear in differing amounts on different servers (i.e. no warnings on development, one warning on staging, and a few more warnings on production).

share|improve this question
Are these definitely warnings, or fatal errors? – TheDeadMedic Jun 10 '11 at 15:52
up vote 1 down vote accepted

WP_DEBUG has no impact on PHP error output. In addition to error_reporting setting, set display_errors=0 in your php.ini file. It's enabled by default for development. But you'll want it off on production servers.

share|improve this answer
To paraphrase wp-includes/load.php: if(WP_DEBUG)error_reporting(E_ALL). But it does seem like several plugins are fiddling with error_reporting and display_errors when they probably shouldn't be. – holizz Jun 13 '11 at 13:24
Ah - you're right, display_errors was set to On in my php.ini. I just assumed WP_DEBUG took care of all the errors. Thank you. – holizz Jun 13 '11 at 13:32

Try to disable/suppress all error warnings/notices in your wp-config.php (on top). Anyway: Errors are nothing bad. They give you a chance to fix your code.

share|improve this answer
I think it was other people's plugins fiddling with error_reporting that caused this. – holizz Jun 13 '11 at 13:41


define('WP_DEBUG', false);

with this:



ini_set('error_reporting', E_ALL );

define('WP_DEBUG', false);

define('WP_DEBUG_LOG', true);

define('WP_DEBUG_DISPLAY', false);
share|improve this answer
Please add an explanation to your answer. – toscho Oct 18 '15 at 19:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.