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?

1
1

Turn off WP_DEBUG because it overwrite your ini_set.

Leave a Reply

Your email address will not be published. Required fields are marked *