CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Custom Fatal Error Page - Fatal.tpl
Pages: [1]

Author Topic: Custom Fatal Error Page - Fatal.tpl  (Read 959 times)

yogibear

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 0
    • Byron Yoga
  • CiviCRM version: 4.1
  • CMS version: 6.2
  • MySQL version: 5.0
  • PHP version: 5.2
Custom Fatal Error Page - Fatal.tpl
August 01, 2009, 05:49:06 pm
I have customized Fatal.tpl to be a little friendlier for the average user.

One thing I would really like to do is have the Fatal error message page show within the Drupal theme, what happens now is that the theme disappears completely and an almost blank page with the fatal error message appears. I feel it is a bit disturbing to non technical users to have the site change in such a radical way when there is a problem, when errors occur I would like to the process to be as mellow possible.

Is there a way to get that Fatal.tpl to appear inline within the Drupal theme container?

I tried but it wasn’t pretty :)

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Custom Fatal Error Page - Fatal.tpl
August 02, 2009, 07:19:17 am

1. in general fatal error messages should rarely appear to the end user. It typically is a configuration issue

2. getting it to appear inline with the drupal theme is a bit non-trivial. We'll need to use the session to store the message and then redirect to a fatal error page that displays the stored message

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

yogibear

  • I post occasionally
  • **
  • Posts: 66
  • Karma: 0
    • Byron Yoga
  • CiviCRM version: 4.1
  • CMS version: 6.2
  • MySQL version: 5.0
  • PHP version: 5.2
Re: Custom Fatal Error Page - Fatal.tpl
August 02, 2009, 02:02:22 pm
Thanks Lobo.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Custom Fatal Error Page - Fatal.tpl

This forum was archived on 2017-11-26.