WordPress.org

Forums

MailChimp List Subscribe Form
PHP Invalid argument error (8 posts)

  1. kierancooper
    Member
    Posted 3 years ago #

    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

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

    Mailchimp account - canonici

    http://wordpress.org/extend/plugins/mailchimp/

  2. Alex
    Member
    Posted 3 years ago #

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

    My (staging) site is http://lifestyleloans.com.au
    Mailchimp account - lifestyleloans

  3. mc_van
    Member
    Posted 3 years ago #

    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/

    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!

  4. kierancooper
    Member
    Posted 3 years ago #

    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

  5. clauz
    Member
    Posted 3 years ago #

    The workaround is perfect!

  6. illusiodesign
    Member
    Posted 3 years ago #

    It's a hack but works great.

  7. mc_nate
    Member
    Posted 3 years ago #

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

    Woohoo!

  8. mc_nate
    Member
    Posted 3 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags