Have a question about CiviCRM? Get it answered quickly at the new CiviCRM Stack Exchange Q+A siteThis forum was archived on 25 November 2017. Learn more.How to get involved.What to do if you think you've found a bug.
The solution in #19 worked for me as well. Is this the solution that was implemented for 4.2.7? Is there something else that should be done instead of this?
this issue has been fixed for 4.2.7 thanx to the efforts of jmeehan lobo
Index: CRM/Member/BAO/Membership.php===================================================================--- CRM/Member/BAO/Membership.php (revision 45945)+++ CRM/Member/BAO/Membership.php (working copy)@@ -753,7 +753,7 @@ } $javascriptMethod = array('onclick' => "return showHideAutoRenew( this.value );");- $autoRenewMembershipTypeOptions["autoRenewMembershipType_{$value}"] = (int)$allowAutoRenewOpt * CRM_Utils_Array::value($value, $form->_membershipBlock['auto_renew']);;+ $autoRenewMembershipTypeOptions["autoRenewMembershipType_{$value}"] = (int)$allowAutoRenewOpt * CRM_Utils_Array::value($value, CRM_Utils_Array::value('auto_renew', $form->_membershipBlock));
Invalid argument supplied for foreach() in /XXXXXX.XXXXXX/sites/all/modules/civicrm/CRM/Event/Form/Registration/Register.php on line 268.