Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 2.1
-
Fix Version/s: 2.1
-
Component/s: CiviContribute
-
Labels:None
Description
The quick form element with id location_1_address_country_state sometimes causes the following error message to appear:
------------------
warning: htmlspecialchars() expects parameter 1 to be string, array given in /Users/chrismott/Sites MAMP/bcsearms2/sites/all/modules/civicrm/packages/HTML/Common.php on line 147.
------------------
This may be related to an issue reported on the forums here: http://forum.civicrm.org/index.php?topic=4245.0
I have gotten this on the Main form of the contribution forms with organization sign-up enabled, when I proceed to Confirm and then go back to Main again.
Debugging the code, it looks like the country and state id's are passed as values as an array for the element attributes, but the function htmlspecialchars function cannot handle arrays.
Attached is a screen shot of the variables showing the value of 'value' prior to the bad call to htmlspecial chars.