This documentation relates to CiviCRM version 3.2. It's not maintained anymore.
Current version of documentation.

Custom Error Screens and Error Handlers

Skip to end of metadata
Go to start of metadata

This page refers to outdated version of CiviCRM. Check current version of documentation.


Documentation Search


CiviCRM 3.2 Documentation

Support and Participation

Developer Resources


CiviCRM book!

Make sure to check out Understanding CiviCRM as well! You can also support this project by ordering a hard copy.

You can configure CiviCRM to use a customized "fatal error" screen. 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 civicrm/templates/CRM/error.tpl
  • 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 CiviCRM » Global Settings » Debugging
  • 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 CiviCRM » Global Settings » Debugging

Dave Hansen-Lange has contributed a Drupal module for debugging errors:

"Sometimes CiviCRM can be real tough to debug. Especially when you are getting fatal errors, but only by some users, and you can't recreate the problems. I wrote a utility that will send you a detailed email when a
CiviCRM fatal error occurs. Hopefully this can help some other devs."

http://drupal.org/project/civicrm_error

Labels
  • None

Creative Commons License
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-Share Alike 3.0 United States Licence.