Support » Plugin: MailChimp for WordPress » Log: 'Contact Form 7 – Your merge fields were invalid'

  • Resolved Rodrigo Domínguez

    (@roddominguez)


    Hi everyone.

    I’ve been trying to resolve this on my own but nothing so far.

    Here is the problem: I’m working on a website for a techonology company, they need forms so the clients can request quotes for their services, and the contact information will be synced with a Mailchimp account.

    For the contact forms I’m using Contact Form 7 and the Bootstrap for Contact Form 7 plugin. I’ve been doing everything as the documentation sets, but I keep getting this error:

    ERROR: Contact Form 7 > MailChimp API Error: Your merge fields were invalid.

    List fields in MailChimp are the same as the contact fields in my form, I’ve tried putting them with the prefix, without it, and so far nothing. It looks like its recognizing the email field because in the list in Mailchimp, the value in the Last Changed field is updated everytime I hit submit, but none of the information that is supossed to update gets changed. I also made sure to check the option to update subscriber information in the integration options for Contact Form 7.

    WordPress version: 4.5.3
    Plugin version: 4.0.2
    Test page: http://microensamble.com/test/fabricacion-de-pcb/

    Any help appreciated

    Thanks!

    https://wordpress.org/plugins/mailchimp-for-wp/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Lap

    (@lapzor)

    Hi,

    Can you share a screenshot of the MailChimp lists Fields page so we can see the merge names?

    You could upload the image to imgur.com and send us the link if that’s ok.

    Hi Lap,

    First half is the list fields I have in the MailChimp account, and below is the code of the form with some of the fields that were supossed to update.

    View post on imgur.com

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hey Rodrigo,

    To debug this further, I would request you to first go to “MailChimp for WP” and click on the “Renew MailChimp Lists” button.

    Next, try adding our form shortcode to some page and please share a link with us. Before we work on the CF7 form, let’s test a form created using our plugin so we can make sure the details are being sent to MailChimp.

    Hi Harish,

    I clicked the Renew button and added the form shortcode here. It says that the email was already suscribed, but the fields in the list aren’t changing or updating.

    http://microensamble.com/test/mailchimp-test/

    I tried to suscribe a new user with an alternate account that I have.

    In the log it says that it was succesfully suscribed, I received the confirmation mail from Mailchimp, clicked on it and added the contact to the list, but there are no signs of the other list fields. I’m just getting the EMAIL, FNAME, LNAME, but none of the additional merge tags.

    If I send the form with an already suscribed account it doesn’t update FNAME or LNAME.

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hey Rodrigo,

    To debug this we would need to check your settings. Can you please email us at “support @mc4wp.com” with a link to this post so we can discuss further?

    Plugin Contributor Lap

    (@lapzor)

    ​MailChimp is very strict with the field type “Address”. My suggestion is to make your own normal text fields for street / zip etc. and use those instead.
    ​If you want to use the field type “address” you have to fill every single field for MailChimp to accept it, including state and country.

    Hope that helps!

    Plugin Contributor Lap

    (@lapzor)

    The problem seemed to be mismatched field names in the form and the MailChimp list. Please make sure that any mc4wp-**** field actually exists in your MailChimp list.

    Hope that helps!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Log: 'Contact Form 7 – Your merge fields were invalid'’ is closed to new replies.