Upgrade to 6.x-2.x-dev caused Mailchimp module to break

rogerlightfoot - September 7, 2009 - 20:37
Project:MailChimp
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

#1

LouBabe - September 8, 2009 - 04:40

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

#2

rogerlightfoot - September 8, 2009 - 20:42

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

#3

LouBabe - September 8, 2009 - 20:44
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.