Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.0.5
-
Fix Version/s: 3.4.6
-
Component/s: CiviCRM Profile, CiviEvent
-
Labels:None
Description
Below is the text of forums posts http://forum.civicrm.org/index.php?topic=21281 and http://forum.civicrm.org/index.php/topic,21282.0.html
When visiting user/124/edit/Name%20and%20Address on a D7/C4.0.5 site I get:
Code:
Notice: Undefined index: 1 in CRM_Core_BAO_UFGroup::setProfileDefaults() (line 1993 of /home/xxx/www/www/sites/all/modules/civicrm/CRM/Core/BAO/UFGroup.php).
I fixed this by adding isset here:
Code:
if (isset( $value['phone'][$phoneTypeId]) ) {
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...