Support » Plugin: MailChimp List Subscribe Form » [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/ 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

    Feel free to add subscribers – this list is not yet live.

    Mailchimp account – canonici

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


    I’m having exactly the same problem.
    Advice and or assistance would be greatly appreciated.

    My (staging) site is
    Mailchimp account – lifestyleloans

    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:

    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!

    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!


    The workaround is perfect!

    It’s a hack but works great.

    Plugin Author mc_nate


    @kierancooper — Doh! I forgot that all-important step. But definitely glad that you added that in there. 🙂


    Plugin Author mc_nate


    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:

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.