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
Comment #1
levelos CreditAttribution: levelos commentedCan't seem to replicate. Anthing else about your configuration that could effect tokens. E.g., are you using Ubercart, etc.?
Comment #2
rogerlightfoot CreditAttribution: rogerlightfoot commentedUpgrading Tokens to Token 6.x-1.12 seemed to fix this. Thanks for the pointer.
Comment #3
levelos CreditAttribution: levelos commented