Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.2.0
-
Fix Version/s: 4.2.0
-
Component/s: CiviContribute
-
Labels:None
Description
NOTE: This was affecting Google Checkout and any other IPN processor where paymentFields are not collected on the form.
=========
On a contribution page on 4.2 using the Payment Express processor I get the message
warning: Invalid argument supplied for foreach() in /var/www/civicrm/civicrm-fuzion-d6-4.2/CRM/Contribute/Form/Contribution/Main.php on line 1103.
The line is
foreach ($self->_paymentFields as $name => $fld) {
_paymentFields isn't declared on the CRM_Contribute_Form_Contribution_Main class & I'm not sure where it should be set.
Probably it's fine just to wrap in an
if(isset($self->_paymentFields)){
}