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) »
  • Undefined index in lots of places
Pages: [1]

Author Topic: Undefined index in lots of places  (Read 961 times)

rfenwick

  • I’m new here
  • *
  • Posts: 20
  • Karma: 1
Undefined index in lots of places
May 08, 2011, 11:20:51 am
I'm building a new CiviCRM 4.0.1 install on Drupal 7 - no data import, clean out of the box. I'm seeing a *lot* of undefined index errors. I've done a bit of searching and can't see anyone else reporting this, is it just me? Sorry if I'm being exceptionally thick!

A couple of examples:

MERGING DUPLICATES SCREEN:

Notice: Undefined variable: mainUser in CRM_Contact_Form_Merge->preProcess() (line 115 of /var/www/sites/all/modules/civicrm/CRM/Contact/Form/Merge.php).
Notice: Trying to get property of non-object in CRM_Contact_Form_Merge->preProcess() (line 115 of /var/www/sites/all/modules/civicrm/CRM/Contact/Form/Merge.php).
Notice: Undefined index: is_error in civicrm_api() (line 94 of /var/www/sites/all/modules/civicrm/api/api.php).
Notice: Undefined index: is_error in civicrm_api() (line 94 of /var/www/sites/all/modules/civicrm/api/api.php).

EVENTS, WHEN SAVING EVENT LOCATION:

Notice: Undefined index: phoneTypeId in CRM_Core_BAO_Block::create() (line 286 of /var/www/sites/all/modules/civicrm/CRM/Core/BAO/Block.php).


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: Undefined index in lots of places
May 08, 2011, 03:42:55 pm

We are in the process of cleaning up those notices. Progress has been a bit slow, but i suspect we'll get more of them in the next release. In the meantime you can do:

1. Suppress notices from your drupal administer settings

2. File patches against notices that you encounter.

We defintely would appreciate if you can submit a few patches to clean up some of the notices

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

Andrew Perry

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 1
  • Building empowering tools that comply with rules
    • Community Builders Australia
  • CiviCRM version: 3.x, 4.x
  • CMS version: Joomla 1.0.x, 1.5.x -> Drupal 6.x, 7.x, WordPress
  • MySQL version: 5.1, 5.5, 5.6
  • PHP version: 5.2, 5.3, 5.4
Re: Undefined index in lots of places
May 10, 2011, 10:45:56 pm
We are also experiencing these with imports, so it isn't just you!

eg:


Notice: Undefined index: in CRM_Import_Form_MapField->postProcess() (line 812 of <drupal_root>/sites/all/modules/civicrm/CRM/Import/Form/MapField.php).
Community Builders Australia Pty Ltd
www.communitybuilders.com.au

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Undefined index in lots of places

This forum was archived on 2017-11-26.