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 »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Rename error variables to ease forum use
Pages: [1]

Author Topic: Rename error variables to ease forum use  (Read 965 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Rename error variables to ease forum use
February 11, 2011, 02:59:32 pm
Often I wish to paste a CiviCRM error trace into a forum post, and there are niggling problems with variable names between square brackets
  • 'code' between square brackets is interpreted as a code formatting signal by the forum software. I have to change it to '[ code ]' otherwise the rest of the post is included in a code segment
  • '0' between square brackets is interpreted as a bullet

Can we rename the 'code' variable in the Error object? Or does that cause apocalyptic chaos?

( I assume we can't do much about a zero between square brackets. )

Ken

PS Here's an example of a 'quote' containing 'code' and '0', followed by non-quote text ...

Quote
Feb 12 08:09:03  [info] $Fatal Error Details = Array
(
    [callback] => Array
        (
           
  • (this is the '0')=> CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
(this is the 'code') => -5
    [message] => DB Error: already exists
    [mode] => 16
    [debug_info] => INSERT INTO civicrm_cache (group_name , path , data , created_date ) VALUES ( ... )  [nativecode=1062 ** Duplicate entry 'navigation-navigationList ' for key 'UI_group_path']
    [type] => DB_Error
)[/quote]

this is not part of the 'quote' but is formatted as part of the 'code'

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • Usability Improvements (Moderator: Dave Greenberg) »
  • Rename error variables to ease forum use

This forum was archived on 2017-11-26.