Mailchimp module was all working perfectly until I upgraded.

I now get following at http://www.ashford-hockey.co.uk/drupal/?q=admin/settings/mailchimp

* warning: Invalid argument supplied for foreach() in /home/ashfordh/public_html/drupal/modules/mailchimp/mailchimp.module on line 666.
* warning: Invalid argument supplied for foreach() in /home/ashfordh/public_html/drupal/modules/mailchimp/mailchimp.module on line 666.
* warning: Invalid argument supplied for foreach() in /home/ashfordh/public_html/drupal/modules/mailchimp/mailchimp.module on line 666.

I have three list at my Mailchimp account.

Code is:

664 if (function_exists('token_get_list')) {
665 $tokens = token_get_list(array('user', 'order'));
666 foreach ($tokens['user'] as $token => $name) {
667 $out['token_'. $token] = t('Token: !field', array('!field' => $name));
668 }
669 }

Any help much appreciated.

Thanks

Roger

Comments

levelos’s picture

Can't seem to replicate. Anthing else about your configuration that could effect tokens. E.g., are you using Ubercart, etc.?

rogerlightfoot’s picture

Upgrading Tokens to Token 6.x-1.12 seemed to fix this. Thanks for the pointer.

levelos’s picture

Status: Active » Closed (fixed)