warning: Invalid argument supplied for foreach() in /hermes/web10/b2808/moo.aveotsd2ucom/drupcomtest/modules/mailchimp-6.x-2.3/mailchimp/mailchimp.module on line 509.

argument on line 509

foreach ($lists as $list) {
if (!empty($list['EMAIL'])) {
$success = FALSE;

// include interest groups
if (isset($list['interest_groups_' . $list['list']->id]) && is_array($list['interest_groups_' . $list['list']->id])) {
foreach($list['interest_groups_' . $list['list']->id] as $key => $group) {
$list['GROUPINGS'][] = array('id' => $key, 'groups' => is_array($group) ? implode(', ', array_filter($group)) : $group);
}
}

as a side note i have had the same error from version 2.4

Comments

levelos’s picture

Status: Active » Closed (fixed)

Did you run update.php after upgrading the newest version of the module? You would need to. And/or re-save your module settings.

javier1968’s picture

Same problem here, yes I did update.php but to no avail, any ideas?

Cheers

http://www.tyndall.ac.uk/mailchimp/subscribe

human1101’s picture

Component: Code » General

Sorry about getting back so late, i ended up going with the simplenews module as it better fit my requirements

thanks anyway