Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    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

    (@folbert)

    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.

    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.