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

When turning opn WP_DEBUG and WP_DEBUG_DISPLAY, I get tons of warnings and notices. I have tried to remove the warnings by doing a @ini_set('error_reporting', 1) to only show E_ERROR, but I still get tons of E_NOTICE.

Is there someway to prevent all the warnings and notices and only show errors in HTML output?

share|improve this question
Keep in mind that this is by design. If your site spits many notices / warningn with WP_DEBUG on, it's a sign that the Add-Ons you're using are not state-of-the-art. Plugin authors can make use of the WP_DEBUG setting to find about problematic areas in their application. It is used for programming and quality assurance. – hakre Nov 1 '10 at 20:38
up vote 4 down vote accepted

Turn off WP_DEBUG because it overwrite your ini_set.

share|improve this answer
Thanks. @ini_set('display_errors',1);@ini_set('error_reporting',1); worked when I turned off WP_DEBUG. – grm Nov 1 '10 at 11:06
You are welcome! – sorich87 Nov 1 '10 at 11:07

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.