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 CiviEvent (Moderator: Yashodha Chaku) »
  • "Undefined index" errors on Event Registration
Pages: [1]

Author Topic: "Undefined index" errors on Event Registration  (Read 2852 times)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
"Undefined index" errors on Event Registration
August 23, 2011, 07:12:36 am
On a D7/C4.0.5 site when registering for a free event with a profile I get these messages:

Code: [Select]
Notice: Undefined index: amount_level in CRM_Event_Form_Registration->addParticipant() (line 873 of /home/xxxxxxx/www/www/sites/all/modules/civicrm/CRM/Event/Form/Registration.php).
Notice: Undefined index: 15 in CRM_Activity_BAO_Activity::addActivity() (line 1603 of /home/xxxxxxx/www/www/sites/all/modules/civicrm/CRM/Activity/BAO/Activity.php).
Notice: Undefined index: amount in CRM_Event_Form_Registration->confirmPostProcess() (line 775 of /home/xxxxxxx/www/www/sites/all/modules/civicrm/CRM/Event/Form/Registration.php).
Notice: Trying to get property of non-object in CRM_Event_Form_Registration->confirmPostProcess() (line 777 of /home/xxxxxxx/www/www/sites/all/modules/civicrm/CRM/Event/Form/Registration.php).
Notice: Undefined variable: registerByID in CRM_Event_Form_Registration_Register->processRegistration() (line 1155 of /home/xxxxxxx/www/www/sites/all/modules/civicrm/CRM/Event/Form/Registration/Register.php).

I was able of course to eliminate them by adding a bunch of isset() or is_object() checks but I think there is a bug here...

EDIT: Similar issue here: http://forum.civicrm.org/index.php/topic,21282.0.html This site was upgraded from Drupal 6 and an earlier CiviCRM version.
« Last Edit: August 23, 2011, 07:50:00 am by Hershel »
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.

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" errors on Event Registration
August 23, 2011, 03:17:59 pm

hey hershel:

can u file one issue with both sets of notices from the forum posts, and we'll take a look at it and fix before next release

thanx

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

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: "Undefined index" errors on Event Registration
August 24, 2011, 05:00:00 am
Issue created: http://issues.civicrm.org/jira/browse/CRM-8706

Thanks.
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.

ineke

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
Re: "Undefined index" errors on Event Registration
September 19, 2011, 02:37:45 am
I get a similar Error, using 4.05
It is not clear to me what I should do to prevent this error from showing?
Please help
regards

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: "Undefined index" errors on Event Registration
September 19, 2011, 03:23:52 am
If you don't know how to edit the PHP, then you may just have to wait until 4.0.6 comes out, as it appears this bug is fixed there.

Or if you know how to apply diff files, I think they are here:

http://issues.civicrm.org/jira/browse/CRM-8706?page=com.atlassian.jira.ext.fisheye%3Afisheye-issuepanel
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.

denverdataman

  • I post occasionally
  • **
  • Posts: 93
  • Karma: 2
    • Denver DataMan Website
  • CiviCRM version: Several
  • CMS version: Drupal 6/7
Re: "Undefined index" errors on Event Registration
October 12, 2011, 08:44:37 pm
I upgraded to 4.0.6 and I am still getting

"Notice: Undefined index: 1 in CRM_Activity_BAO_Activity::addActivity() (line 1619 of /home/denverje/public_html/sites/all/modules/civicrm/CRM/Activity/BAO/Activity.php)."

Thanks,
Steve
Steve Kessler
Owner and Lead Consultant of Denver DataMan

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • "Undefined index" errors on Event Registration

This forum was archived on 2017-11-26.