Hide PHP Fatal Error

Component ID

1890248

Component name

Hide PHP Fatal Error

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

7456

Component created

Component changed

Component body

This module simply redirects the user to an error page when a PHP fatal error is thrown. The error page is configurable. The error is logged using watchdog.

Note: this module does not handle errors that are not thrown by PHP, like Apache/Nginx 500 errors (e.g. after a redirect loop). Moreover, it only handles FATAL errors, because all other errors can be caught properly by a try/catch block and are natively handled by Drupal core.

Sponsorship

This project is sponsored by MaPS System. Special thanks to Cedric Pons from MaPS System for its support.