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

jonwithhtop’s picture

I'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);
}
}

worldviewtravel’s picture

Priority: Normal » Critical

I'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.

jasonhoward7’s picture

Same issue here. Any suggestions anyone?

greenskin’s picture

Fixed. Please try the latest dev release.

greenskin’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.