• Resolved James Revillini

    (@jrevillini)


    I’d like to filter out PHP and WordPress notices and deprecated lines so I can look only at errors and warnings. I have this in wp-config:

    define('WP_DEBUG', TRUE); // false
    if (WP_DEBUG) {
      define('WP_DEBUG_LOG', true);
      define('WP_DEBUG_DISPLAY', false);
      @ini_set('display_errors',0);
      error_reporting(E_ALL^E_NOTICE);
    }

    Thoughts?

    Great plugin. Should be core in my opinion.

    https://www.ads-software.com/extend/plugins/error-log-dashboard-widget/

Viewing 1 replies (of 1 total)
  • WordPress checks those constants and sets error reporting levels during load process (wp_debug_mode() call) so what you are trying to set in wp-config by error_reporting() call is overridden.

    You should make error_reporting() call later (after load process completes), try on init hook.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Error Log Dashboard Widget] filter out PHP/WP Notices’ is closed to new replies.