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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Several Undefined property and Undefined index errors after upgrade to 4.0.7
Pages: [1]

Author Topic: Several Undefined property and Undefined index errors after upgrade to 4.0.7  (Read 2991 times)

Erik Hopp

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
Several Undefined property and Undefined index errors after upgrade to 4.0.7
December 15, 2011, 03:39:18 pm
Hi,

I recently upgrades a 3.3 Drupal / CiviCRM site to CiviCRM 4.0.7. Everything seems to have gone fine and all the functions I have test work. I am, however, seeing multiple Undefined property and Undefined index errors.

Here are the errors I'm seeing and the contexts in which they appear:

When renewing membership:

Notice: Undefined property: CRM_Member_Form_MembershipRenewal::$_contributeMode in CRM_Member_BAO_Membership::renewMembership() (line 1404 of /web/abcxyz.org/live/www/sites/all/modules/civicrm/CRM/Member/BAO/Membership.php).
Notice: Undefined index: is_pay_later in CRM_Member_BAO_Membership::renewMembership() (line 1405 of /web/abcxyz.org/live/www/sites/all/modules/civicrm/CRM/Member/BAO/Membership.php).

When editing membership:

Notice: Undefined property: CRM_Member_Form_Membership::$_values in CRM_Member_Form_Membership->postProcess() (line 955 of /web/abcxyz.org/live/www/sites/all/modules/civicrm/CRM/Member/Form/Membership.php).

When clicking "Done" after an export:

Notice: Undefined index: 417 in CRM_Export_BAO_Export::exportComponents() (line 746 of /web/abcxyz.org/live/www/sites/all/modules/civicrm/CRM/Export/BAO/Export.php).
Notice: Undefined index: 3804 in CRM_Export_BAO_Export::exportComponents() (line 746 of /web/abcxyz.org/live/www/sites/all/modules/civicrm/CRM/Export/BAO/Export.php).
Notice: Undefined index: 3805 in CRM_Export_BAO_Export::exportComponents() (line 746 of /web/abcxyz.org/live/www/sites/all/modules/civicrm/CRM/Export/BAO/Export.php).
Notice: Undefined index: 3882 in CRM_Export_BAO_Export::exportComponents() (line 746 of /web/abcxyz.org/live/www/sites/all/modules/civicrm/CRM/Export/BAO/Export.php).

Is there anything I can do to remove these errors? Is there any harm caused by these errors continuing to exist?

Thanks,

Erik.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Several Undefined property and Undefined index errors after upgrade to 4.0.7
December 15, 2011, 10:40:12 pm
Quote
Is there anything I can do to remove these errors? Is there any harm caused by these errors continuing to exist?

This are not error. They are notices and it won't affect any functionality. You can disable showing error messages on the screen in drupal.

check <you-site>index#overlay=admin/config/development/logging

Hth

Kurund
Found this reply helpful? Support CiviCRM

Denver Dave

  • Ask me questions
  • ****
  • Posts: 471
  • Karma: 9
Re: Several Undefined property and Undefined index errors after upgrade to 4.0.7
December 31, 2011, 09:12:09 am
We've just upgraded to CiviCRM 4.08 and we are still getting quite a few undefined index warnings.  The latest feedback from a user was when updating their contact information from a profile linked from an email.  The information updated, but the error is causing confusion:

Notice: Undefined index: country-Primary in CRM_Profile_Form::formRule() (line 764 of /home/healthcare/www/www/sites/all/modules/civicrm/CRM/Profile/Form.php).

Is there someway to figure out the definition of the index and to create it so we don't get the warning message?

Are new installations receiving the message or is the missing index limited to upgrades?

Thanks.

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: Several Undefined property and Undefined index errors after upgrade to 4.0.7
December 31, 2011, 06:17:33 pm

You should suppress notices in 4.0.x (from the drupal admin / configuration settings)

In 4.1 we've gotten rid of most / all notices. Would be great if you can run a few tests on 4.1 and ensure that most notices have disappeared. If not, please file an issue along with steps to reproduce this on our sandbox server

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) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Several Undefined property and Undefined index errors after upgrade to 4.0.7

This forum was archived on 2017-11-26.