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) »
  • Cannot disable displaying errors (debug)
Pages: [1]

Author Topic: Cannot disable displaying errors (debug)  (Read 2439 times)

MtnPavlas

  • Guest
Cannot disable displaying errors (debug)
January 21, 2010, 01:11:56 am
I receive errors in some instances, e.g. when running custom search, even though I disabled debugging in Joomla, in CiviCRM and also in php.ini

Example (this line is repeated 8 times above my search results):
Notice: Undefined offset: 2 in /home2/wspaonli/public_html/subdomains/test/administrator/components/com_civicrm/civicrm/CRM/Contact/Selector.php on line 359

Some stats:
CiviCRM: 3.0.3 for Joomla
Joomla: 1.5.15
db: MySQL 5.1.42
OS: Centos
php: 5.2.11

Everything seems to be working correctly so I don't want to freak the client out once I turn it over to them.

Thank you for any ideas on how to turn these off...

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Cannot disable displaying errors (debug)
January 21, 2010, 01:20:46 am
you might want to disable notices from php.ini

do check :
Code: [Select]
error_reporting = E_ALL & ~E_NOTICE from php.ini


kiran
You Are Designed To Choose... Defined By Choice.

MtnPavlas

  • Guest
Re: Cannot disable displaying errors (debug)
January 21, 2010, 05:53:56 pm
Thanks for the reply. I thought the error_reporting setting indicates "what" can be displayed and then display_errors = Off would ensure that it's actually not displayed.

Anyway - should I just comment out the error_reporting line? Is it going to prevent errors from being logged? I don't want errors displayed but definitely want them logged...

I'll try it and report out results.

MtnPavlas

  • Guest
Re: Cannot disable displaying errors (debug)
January 21, 2010, 10:41:07 pm
Hey guys, reporting back: I've commented out the line
Code: [Select]
;error_reporting  =  E_ALL & ~E_NOTICEin the php.ini file, which I then copied into every subfolder

But still get the error messages, e.g.:
Code: [Select]
Notice: Undefined index: title in /home2/wspaonli/public_html/subdomains/test/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/Mapping.php on line 417
Notice: Undefined variable: typeId in /home2/wspaonli/public_html/subdomains/test/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/Mapping.php on line 536
Notice: Undefined variable: typeId in /home2/wspaonli/public_html/subdomains/test/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/Mapping.php on line 536
Notice: Undefined variable: typeId in /home2/wspaonli/public_html/subdomains/test/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/Mapping.php on line 536

This mostly happens when exporting members or contacts.

Would you have any other ideas for resolution? Thanks a lot for your help...

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Cannot disable displaying errors (debug)

This forum was archived on 2017-11-26.