Upgrade to 6.x-2.x-dev caused Mailchimp module to break
| Project: | MailChimp |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
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
Can't seem to replicate. Anthing else about your configuration that could effect tokens. E.g., are you using Ubercart, etc.?
#2
Upgrading Tokens to Token 6.x-1.12 seemed to fix this. Thanks for the pointer.
#3