Disable WordPress Fatal Error Handler

Since WordPress 5.2, a new feature was added that prevents the WSoD (White Screen of Death) from appearing, however you may need to disable the fatal error handler in some circumstances. Should you find yourself in this situation you will likely see a message that reads:

There has been a critical error on your website. Please check your site admin email inbox for instructions.

In your admin email inbox you will receive a message with the error:

WordPress Fatal Error Message

However if you don’t have a working mail server or want to disable this functionality to speed up debugging you can copy this code into your wp-config.php file:

or you can do the same from a functions.php:

 

If you’ve disabled the fatal error handler and still can’t access your website it may be a sign of another issue, if you need assistance in getting your website up and running feel free to contact us today.