Title: [Plugin: MailChimp List Subscribe Form] PHP Invalid argument error
Last modified: August 20, 2016

---

# [Plugin: MailChimp List Subscribe Form] PHP Invalid argument error

 *  [kierancooper](https://wordpress.org/support/users/kierancooper/)
 * (@kierancooper)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-mailchimp-list-subscribe-form-php-invalid-argument-error/)
 * Using MailChimp Widget 1.2.5
 * When any address subscribes, there is an error
    Warning: Invalid argument supplied
   for foreach() in /home/canonici2/canonici.kierancooper.com/wp-content/plugins/
   mailchimp/mailchimp.php on line 1189 which appears above the ‘Success, you’ve
   been signed up! Please look for our confirmation email!’ message.
 * Signup works perfectly. This happens on every occasion at the moment.
 * My (staging) site is [http://canonici.kierancooper.com](http://canonici.kierancooper.com)
 * Feel free to add subscribers – this list is not yet live.
 * Mailchimp account – canonici
 * [http://wordpress.org/extend/plugins/mailchimp/](http://wordpress.org/extend/plugins/mailchimp/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Alex](https://wordpress.org/support/users/smoothunit/)
 * (@smoothunit)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-mailchimp-list-subscribe-form-php-invalid-argument-error/#post-2315994)
 * I’m having exactly the same problem.
    Advice and or assistance would be greatly
   appreciated.
 * My (staging) site is [http://lifestyleloans.com.au](http://lifestyleloans.com.au)
   
   Mailchimp account – lifestyleloans
 *  [mc_van](https://wordpress.org/support/users/mc_van/)
 * (@mc_van)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-mailchimp-list-subscribe-form-php-invalid-argument-error/#post-2316054)
 * Hey Kieran and Alex!
 * Looks like we are able to replicate this issue, and we will pass it along to 
   the big chimp developers to take a look at.
 * There is a workaround we can recommend at this time: Simply create a hidden group
   for the list in the MailChimp app. The group does not need to appear on the form
   nor be selected in the MailChimp settings page in WordPress. There just needs
   to be at least one group within the list.
 * To add a group to the list within MailChimp, please refer to this handy tutorial
   here: [http://kb.mailchimp.com/article/how-can-i-add-groups-for-segmenting-to-my-sign-up-form/](http://kb.mailchimp.com/article/how-can-i-add-groups-for-segmenting-to-my-sign-up-form/)
 * In Step 2 of the “Create Groups on an Existing List” section, for the “How should
   we show group option” field, select the “don’t show these groups on my signup
   form” option to keep the groups hidden from your subscribers.
 * You’re the only one who will see this group so it can be for anything, like maybe
   favorite blog software. 😉
 * It’s a bit of a hack, but it works.
 * Eep eep!
 *  Thread Starter [kierancooper](https://wordpress.org/support/users/kierancooper/)
 * (@kierancooper)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/plugin-mailchimp-list-subscribe-form-php-invalid-argument-error/#post-2316059)
 * Thanks so much – I thought it might be something to do with the fact that I didn’t
   have any groups set up. I’ve applied the workaround – but you also have to go
   into the MailChimp settings panel within WordPress and click ‘Update List’ before
   the error goes away in the signup form.
 * Look forward to the fix!
 * Thanks
    Kieran
 *  [clauz](https://wordpress.org/support/users/clauz/)
 * (@clauz)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-mailchimp-list-subscribe-form-php-invalid-argument-error/#post-2316232)
 * The workaround is perfect!
 *  [illusiodesign](https://wordpress.org/support/users/illusiodesign/)
 * (@illusiodesign)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-mailchimp-list-subscribe-form-php-invalid-argument-error/#post-2316251)
 * It’s a hack but works great.
 *  [mc_nate](https://wordpress.org/support/users/mc_nate/)
 * (@mc_nate)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-mailchimp-list-subscribe-form-php-invalid-argument-error/#post-2316252)
 * [@kierancooper](https://wordpress.org/support/users/kierancooper/) — Doh! I forgot
   that all-important step. But definitely glad that you added that in there. 🙂
 * Woohoo!
 *  [mc_nate](https://wordpress.org/support/users/mc_nate/)
 * (@mc_nate)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-mailchimp-list-subscribe-form-php-invalid-argument-error/#post-2316277)
 * Wanted to update this post and let people know that version 1.2.6 is live! The
   new version corrects this issue with the PHP error, as well. You can either update
   the plugin from your WordPress install or directly from here:
 * [http://wordpress.org/extend/plugins/mailchimp/](http://wordpress.org/extend/plugins/mailchimp/)

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘[Plugin: MailChimp List Subscribe Form] PHP Invalid argument error’ is
closed to new replies.

 * ![](https://ps.w.org/mailchimp/assets/icon.svg?rev=3156997)
 * [Mailchimp List Subscribe Form](https://wordpress.org/plugins/mailchimp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp/reviews/)

 * 7 replies
 * 6 participants
 * Last reply from: [mc_nate](https://wordpress.org/support/users/mc_nate/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-mailchimp-list-subscribe-form-php-invalid-argument-error/#post-2316277)
 * Status: not resolved