Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
1  
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

1 Answer 1

up vote 3 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

 
discard

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.