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) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • CiviCRM Error log / notification?
Pages: [1]

Author Topic: CiviCRM Error log / notification?  (Read 2580 times)

greenmachine

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 6
CiviCRM Error log / notification?
November 03, 2007, 09:27:43 pm
What I'd like is either:

  • A log of CiviCRM errors displayed to the user (especially core errors, invalid key error, stuff like that)
  • A way to send a copy of each serious error encountered by a visitor to an admin e-mail address

Is there any easy way to make either of these happen (or does it exist already)? For instance could I just hack away at CRM/error.tpl to achive these goals?

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: CiviCRM Error log / notification?
November 03, 2007, 11:39:36 pm

You will need to hack CRM/Core/Error.php and add log to file statements in the functions, fatal and handle

This is definitely a good idea and worth doing. I've filed an issue at: http://issues.civicrm.org/jira/browse/CRM-2386, this will be addressed and resolved for 2.0

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

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: CiviCRM Error log / notification?
November 04, 2007, 02:46:57 pm

I've added the needed code in 2.0 in CRM/Core/Error.php, you can look at it and backport if needed.

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • CiviCRM Error log / notification?

This forum was archived on 2017-11-26.