I would like to change the language on the "Fatal Error" screen that users occasionally encounter by adding some text specific to my organization. How can I do this?
You can configure CiviCRM to use a customized "fatal error" screen by following the steps below. You may want to include specific site administrator contact information or other problem resolution instructions on the screen, as well as "theme" it for a more professional or consistent look.
- Save a copy of
- Edit the text and layout of this file as desired. You can add site administrator contact info, site logos, etc. as needed.
- Login (with Admin CiviCRM rights) and navigate to Administer » System Settings » Debugging and Error Handling
- Replace the default value (
CRM/error.tpl) with the relative path (from
civicrm/templates) and name of your new file.
- Save your changes.
You can also configure CiviCRM to use a custom error handler by referencing a custom PHP function in Administer » System Settings » Debugging and Error Handling
You might also be interested in the CiviCRM Error Handler extension which sends a detailed email to an administrator every time CiviCRM encounters a fatal error.
This content was migrated here from this wiki page as part of the 2017 wiki content migration project