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 »
  • Using Import (Moderator: Yashodha Chaku) »
  • How do I know when a "Notice" is important?
Pages: [1]

Author Topic: How do I know when a "Notice" is important?  (Read 1703 times)

cscooper

  • Guest
How do I know when a "Notice" is important?
October 26, 2011, 05:58:40 am
I'm brand new to CiviCRM, and I just finished creating some custom field sets and importing contact data from a CSV file, and then I tried creating a report of my contacts.

I got a lot of red Notice lines on screens just in these first few steps, how do I know which of those are important and which I can ignore?

I get things like:
Undefined index: custom in _civicrm_add_formatted_param()
Undefined index: contact_type in _civicrm_add_formatted_param()
Undefined index: section in CRM_Report_Form->orderBy()
Undefined index: street_address in CRM_Import_Parser_Contact->createContact()
Trying to get property of non-object in CRM_Import_Parser_Contact->createContact()
Undefined offset: 0 in CRM_Import_form_MapField->buildQuickForm()

Thanks,
Chris

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: How do I know when a "Notice" is important?
October 26, 2011, 09:22:15 am
An error of "Undefined index" is actually a warning and those are generally safe to ignore. You can report them so we can fix them, but they are not errors per se.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: How do I know when a "Notice" is important?
November 15, 2011, 04:47:13 am
Great. Here's a notice when attempting a small data import into a 4.0.6 install:

Notice: Undefined index: in CRM_Import_Form_MapField->postProcess() (line 812 of /var/www/vhosts/example.com/httpdocs/sites/all/modules/civicrm/CRM/Import/Form/MapField.php).
Graham Mitchell
http://mc3.coop

Upperholme

  • Administrator
  • Ask me questions
  • *****
  • Posts: 568
  • Karma: 8
    • MC3
  • CiviCRM version: 4.x
  • CMS version: Drupal 6.x/7.x, Wordpress, Joomla
Re: How do I know when a "Notice" is important?
November 15, 2011, 05:44:45 am
And when I did the import I got a whole list of more Notices:

One of these:
Notice: Undefined index: prefix_id in _civicrm_add_formatted_param() (line 210 of /var/www/vhosts/example.com/httpdocs/sites/all/modules/civicrm/api/v2/utils.v2.php).

Then one of these:
Notice: Undefined index: 4_a_b in CRM_Import_Parser_Contact->checkRelatedContactFields() (line 1948 of /var/www/vhosts/example.com/httpdocs/sites/all/modules/civicrm/CRM/Import/Parser/Contact.php).

Then one of these:
Notice: Undefined index: id in CRM_Import_Parser_Contact->import() (line 828 of /var/www/vhosts/example.com/httpdocs/sites/all/modules/civicrm/CRM/Import/Parser/Contact.php).

Followed by lots of these (probably as many as the number of records imported, but I didn't count):
Notice: Undefined index: prefix_id in _civicrm_add_formatted_param() (line 210 of /var/www/vhosts/example.com/httpdocs/sites/all/modules/civicrm/api/v2/utils.v2.php).
Notice: Undefined index: id in CRM_Import_Parser_Contact->import() (line 828 of /var/www/vhosts/example.com/httpdocs/sites/all/modules/civicrm/CRM/Import/Parser/Contact.php).

The import appears to have worked OK however, but this is the type of thing that scares the pants off newer users.
Hopefully it's already fixed in 4.0.7
Graham Mitchell
http://mc3.coop

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: How do I know when a "Notice" is important?
November 29, 2012, 12:31:17 pm
I have the same error on 4.2

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: How do I know when a "Notice" is important?
November 29, 2012, 04:32:11 pm
I think most folks configure their production sites so those types of notices are NOT displayed on the screen to users - but are just written to the log file.

Drupal > Administer > Configuration > Logging and Errors - Error Messages to Display field ... "It is recommended that sites running on production environments do not display any errors."
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Import (Moderator: Yashodha Chaku) »
  • How do I know when a "Notice" is important?

This forum was archived on 2017-11-26.