Title: Disable PHP-error-display-hijacking?
Last modified: August 31, 2016

---

# Disable PHP-error-display-hijacking?

 *  Resolved [folbert](https://wordpress.org/support/users/folbert/)
 * (@folbert)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/disable-php-error-display-hijacking/)
 * Thanks for a great plugin!
 * I was wondering if there is a way to keep QM from hijcaking PHP-error-reporting?
   I would like to keep QM running but want php errors/notices to be displayed in
   the standard way (breaking page layout 🙂 ). They are too easy to miss when QM
   is displaying them 🙂
 * [https://wordpress.org/plugins/query-monitor/](https://wordpress.org/plugins/query-monitor/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [10 years, 2 months ago](https://wordpress.org/support/topic/disable-php-error-display-hijacking/#post-7129908)
 * There’s no built-in way to disable this functionality in QM, because unfortunately
   it has to hook in super early to catch all errors.
 * The best way that I can recommend is to straight up delete the `collectors/php_errors.
   php` file, which is where the error collector is initialised. Deleting it won’t
   cause any problems because the files in this directory are loaded by reading 
   the directory. Only problem of course is you’ll need to remember to remove it
   each time you update the plugin in the future.
 * Most of the other collectors use the `qm/collectors` filter which allows them
   to be removed with `remove_filter()` in another plugin, but the collectors for
   PHP errors, HTTP requests, languages, redirects, and transients all load early
   in the same way so nothing gets missed.
 *  Thread Starter [folbert](https://wordpress.org/support/users/folbert/)
 * (@folbert)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/disable-php-error-display-hijacking/#post-7129944)
 * Excellent! Deleting the file will do the trick since the plugin is not used in
   production and is not a crucial plugin for any functionality.
 * Thanks for the quick answer.
 *  [emileriksen](https://wordpress.org/support/users/emileriksen/)
 * (@emileriksen)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/disable-php-error-display-hijacking/#post-7130034)
 * Wouldn’t you be able to hook in early enough to disable it in a MU plugin? I 
   actually quite like the way QM hijacks the errors when I’m logged in but it’s
   terrible for debugging when I’m logged out since it hides all errors without 
   having the admin bar button to notify me causing me to miss errors and notices.
   I know you can set a cookie to see QM when logged out but it’s terribly inconvenient
   to have to scroll down to look for errors all the time.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Disable PHP-error-display-hijacking?’ is closed to new replies.

 * ![](https://ps.w.org/query-monitor/assets/icon.svg?rev=2994095)
 * [Query Monitor](https://wordpress.org/plugins/query-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/query-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/query-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/query-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/query-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/query-monitor/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [emileriksen](https://wordpress.org/support/users/emileriksen/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/disable-php-error-display-hijacking/#post-7130034)
 * Status: resolved