Closed (fixed)
Project:
iContact
Version:
6.x-2.0-alpha2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jul 2010 at 16:49 UTC
Updated:
18 Oct 2012 at 20:31 UTC
warning: Invalid argument supplied for foreach() in /sites/all/modules/icontact/classes/iContactResource.class.inc on line 35.
Just spent all day installing this module and trying to get it to work. When I submit details using the block form or my own form, I get the above error.
Any ideas what is causing this to happen? It appears that the email addresses get sent to iContact but are not added to the group.
Comments
Comment #1
jonwithhtop commentedI'm having the exact same issue when submitting the form in my block
warning: Invalid argument supplied for foreach() in
/sites/all/modules/icontact/classes/iContactResource.class.inc on line 35.
There was an error processing your request. Please try again later.
I don't know where to start debugging this issue.
This is the line of code that it refers too
protected function setData($data) {
foreach ($data as $key => $value) {
$this->$key = (is_array($value)) ? $value : ((is_numeric($value)) ? (int)$value : (string)$value);
}
}
Comment #2
worldviewtravel commentedI'm having the exact same issue when submitting the form in my block
warning: Invalid argument supplied for foreach() in
/sites/all/modules/icontact/classes/iContactResource.class.inc on line 35.
There was an error processing your request. Please try again later.
Comment #3
jasonhoward7 commentedSame issue here. Any suggestions anyone?
Comment #4
greenskin commentedFixed. Please try the latest dev release.
Comment #5
greenskin commented