Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.2.19
-
Fix Version/s: 4.6
-
Component/s: CiviContribute
-
Labels:None
-
Documentation Required?:None
Description
When I attempt to make a contribution at:
http://example.com/civicrm/contact/view/contribution?reset=1&action=add&cid=34&context=contribution&mode=live
I receive the following error when I click save:
========
Notice: Array to string conversion in CRM_Utils_Address::format() (line 212 of CRM/Utils/Address.php).
========
I'm using CiviCRM 4.2 on PHP 5.5
I tracked this down to this array set:
https://github.com/CiviCRM42/civicrm42-core/blob/4.2/CRM/Contribute/Form/Contribution.php#L1262
which is then not processed by
https://github.com/CiviCRM42/civicrm42-core/blob/4.2/CRM/Contact/BAO/Individual.php#L235
because of this, the email is passed as an array, rather than a string.
I've attached the backtrace for your convenience.