Details
-
Type:
Bug
-
Status: Done/Fixed
-
Priority:
Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.0.7
-
Fix Version/s: 4.1.2
-
Component/s: CiviCRM API
-
Labels:None
Description
Hi,
I'm trying to use APIv3 to search for a contact based on a custom field. The XML being returned is malformed, it includes a PHP error message referencing the CiviCRM "Array.php" file.
The API call I'm making (although several others generate the same error):
Specific error message returned before the proper XML:
Invalid argument supplied for foreach() in <b>/public_html/sites/all/modules/civicrm/CRM/Utils/Array.php</b> on line <b>114</b>.
The correct XML is being included after the wrongly-included error messages so I can parse it with my scripts but I can't test in the browser. Any debugging advice?
Thanks!