Title: [Plugin: Error Log Dashboard Widget] filter out PHP/WP Notices
Last modified: August 20, 2016

---

# [Plugin: Error Log Dashboard Widget] filter out PHP/WP Notices

 *  Resolved [James Revillini](https://wordpress.org/support/users/jrevillini/)
 * (@jrevillini)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-error-log-dashboard-widget-filter-out-phpwp-notices/)
 * 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.
 * [http://wordpress.org/extend/plugins/error-log-dashboard-widget/](http://wordpress.org/extend/plugins/error-log-dashboard-widget/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Andrey “Rarst” Savchenko](https://wordpress.org/support/users/rarst/)
 * (@rarst)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-error-log-dashboard-widget-filter-out-phpwp-notices/#post-2605348)
 * WordPress checks those constants and sets error reporting levels during load 
   process ([`wp_debug_mode()`](http://codex.wordpress.org/Function_Reference/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.

 * ![](https://s.w.org/plugins/geopattern-icon/error-log-dashboard-widget.svg)
 * [Error Log Dashboard Widget](https://wordpress.org/plugins/error-log-dashboard-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/error-log-dashboard-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/error-log-dashboard-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/error-log-dashboard-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/error-log-dashboard-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/error-log-dashboard-widget/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Andrey “Rarst” Savchenko](https://wordpress.org/support/users/rarst/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-error-log-dashboard-widget-filter-out-phpwp-notices/#post-2605348)
 * Status: resolved