• Resolved westopher

    (@westopher)


    I’m getting an error where users can’t successfully sign up for my Mailchimp form on my WordPress website. The error is listed below in full from the Debug log on my WordPress Dashboard.

    I think the problem is that I can’t get my WordPress form fields to align with my Mailchimp form fields, so my API is giving and getting different fields than expected. I’m trying to get these form fields to align, but I can’t seem to do so by navigating WordPress’s dashboard and MailChimp’s Audience/Signup Forms/Form Builder section on their dashboard.

    The fields I want (as required fields):
    Email
    First Name
    Last Name
    Birthday
    Zip Code

    The Email Fields As Is (see link)
    Email Address
    First Name
    Last Name
    Birthday

    (in the form as it currently stands, only the email address is required and there is no zip code field).

    I don’t know how to get these fields to be the same on WordPress and Mailchimp. On my Mailchimp back end, I have these fields listed as mandatory, but it doesn’t seem to be updating on my WordPress and I have no idea why. Do I have to update the HTML in the form fields in WordPress to match them?

    Please help, this is very confusing. Thank you. Error message below.

    Error Message

    [2020-01-19 15:10:39] ERROR: Form 954 > Mailchimp API error: 400 Bad Request. Invalid Resource. Your merge fields were invalid.
    - MMERGE6 : Please enter a value
    Request: POST https://us20.api.mailchimp.com/3.0/lists/cea7e7971c/members - {"status":"pending","email_address":"krae*******@gm***.com","interests":{},"merge_fields":{"BIRTHDAY":"05\/30","FNAME":"WEst","LNAME":"Kraemer"},"email_type":"html","ip_signup":"--MY IP ADDRESS--","tags":[]}
    Response: 400 Bad Request - {"type":"https://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"Invalid Resource","status":400,"detail":"Your merge fields were invalid.","instance":"487aff70-893b-40c8-a3ce-a2c6b98a3838","errors":[{"field":"MMERGE6","message":"Please enter a value"}]}<code></code><code></code>

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    Please go to the “M4WP” menu in your WordPress admin, click on the “List/Audience” name, and let us know what the “MMERGE6” field is for.

    Thread Starter westopher

    (@westopher)

    Hi there! Thanks for the response and trying to help me with this.

    So, there is no MMERGE6 field actually listed. When I click on the list name that you ask me to, I see a table open below called “Merge fields”

    Within that table, I’ve got 3 categories, Name, Tag, and Type.

    Name: Email address, Birthday, First Name, Last Name, Zip Code
    Tag: Email, Birthday, FNAME, LNAME, MMERGE3
    Type: email, birthday (MM/DD), text, text, zip

    (In the WordPress Dashboard the table itself is vertical, but formatting it like that in this comment is difficult).

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Thanks for sharing that. This is strange. Can you try going to your MailChimp.com account, edit the list/Audience and share a screenshot where it shows the field names?

    Thread Starter westopher

    (@westopher)

    I don’t think I can include screenshots here (if I can, please let me know how).

    As an alternative, I posted screen shots on a url on my site for you to see:

    https://egoactus.com/screenshots/

    These errors all started when I tried to edit a form that was already working to 1) make all of the fields mandatory (only the email was mandatory on the previous field), and 2) during the same editing process, I added the field zip code.

    Thank you for helping me with this.

    Plugin Contributor Lap

    (@lapzor)

    Please go to MailChimp for WP > MailChimp and click “renew mailchimp lists” to pull in the latest data.

    Then go to MailChimp for WP > Form > Settings, make sure the correct list is selected. Fields are setup per list/audience in MailChimp.

    Finally go to MailChimp for WP > Form > Fields, now you should see the buttons above the editor corresponding to the fields created for that list/audience and required fields should have a red line around them.

    Hope that helps. If you have any questions, please let me know!

    Thread Starter westopher

    (@westopher)

    Thank you for having a look! Below I’ve put your recommendations with my follow up questions below.

    “Please go to MailChimp for WP > MailChimp and click “renew mailchimp lists” to pull in the latest data.”

    ^…done.

    “Then go to MailChimp for WP > Form > Settings, make sure the correct list is selected. Fields are setup per list/audience in MailChimp.”

    ^…I’ve only got one list on MC, so I would this this is correct by default, no?

    “Finally go to MailChimp for WP > Form > Fields, now you should see the buttons above the editor corresponding to the fields created for that list/audience and required fields should have a red line around them.”

    ^…Here is where I’ve been seeing a huge disconnect. The form fields are as you say, they do have a red line around them. (The Email address, first name, and last name are buttons with a red star, but they are kind of faded compared to birthday and zip code, which also have a red star, but birthday and zip code have unfaded colors.) Scroll down to the two pictures on the bottom of this link to see what I’m saying via screen shot: https://egoactus.com/screenshots/

    So, from what I see the HTML in the form code and the form itself in the form preview are not updating. I’m so confused. Is there something I should be doing on MC itself? I’m still confused as to why this isn’t working, why the preview isn’t updating, and why the form code isn’t updating, and why this isn’t working overall.

    Thread Starter westopher

    (@westopher)

    I have more error logs. Should I send them here?

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    You can also share it using the email provided on https://www.mc4wp.com/contact/. I noticed you are using script provided by MailChimp.com on our forms. Not sure if this could can an issue, but I would recommend doing a backup of your form code and then delete all the code and add the fields again using the buttons provided on top of the form.

    Thread Starter westopher

    (@westopher)

    I’m importing a form from Mailchimp itself.

    How do I do what you’re suggesting? Can you give me some more detail on that process please?

    Plugin Contributor Lap

    (@lapzor)

    You should build the form fully within our form builder and not copy/paste any code from MailChimp.com

    So maybe try to delete the code you have now and rebuild it within our form builder with the button above the form builder and without adding any script from MailChimp.com or anywhere else.

    Hope that helps. If you have any questions, please let me know!

    Thread Starter westopher

    (@westopher)

    I totally agree with you, and I haven’t copy/pasted any code.

    I described what I did above, which was, I tried to use this WordPress plugin to integrate my MC with my WordPress via a form. I originally built the form on either this plugin or WordPress, at this point, I don’t remember which one it was. Everything was working until I edited the form to make all the existing fields mandatory and added additional mandatory fields.

    The code I’m referring to is displayed in this WordPress plugin and I put a screenshot of the code in the bottom two images of this url: https://egoactus.com/screenshots/

    Can you please give me more details on how to do what you’re telling me? I’m happy to use your solution, as it sounds like a great idea- I just want to implement it properly.

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    I would recommend the following steps:

    1. Go to “MC4WP > Forms” and then copy all the code and save a backup of it on your computer.
    2. Delete all the form code.
    3. Now add the fields again by clicking on the buttons provided on top of the form.

    Once this is done, please test the form again and see if it works.

    Thread Starter westopher

    (@westopher)

    Okay, I built the form with your advice. But the birthday field is just text. My old form had all of this other information too:

    <!-- Begin Mailchimp Signup Form -->
    <link href="//cdn-images.mailchimp.com/embedcode/classic-10_7.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    	#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }
    	/* Add your own Mailchimp form style overrides in your site stylesheet or in this style block.
    	   We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
    </style>
    <div id="mc_embed_signup">
    
        <div id="mc_embed_signup_scroll">
    	<h2>Subscribe To Ego Actus' Newsletter</h2>
    <div class="indicates-required"><span class="asterisk">*</span> indicates required</div>
    <div class="mc-field-group">
    	<label for="mce-EMAIL">Email Address  <span class="asterisk">*</span>
    </label>
    	<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
    </div>
    <div class="mc-field-group">
    	<label for="mce-FNAME">First Name </label>
    	<input type="text" value="" name="FNAME" class="" id="mce-FNAME">
    </div>
    <div class="mc-field-group">
    	<label for="mce-LNAME">Last Name </label>
    	<input type="text" value="" name="LNAME" class="" id="mce-LNAME">
    </div>
    <div class="mc-field-group size1of2">
    	<label for="mce-BIRTHDAY-month">Birthday </label>
    	<div class="datefield">
    		<span class="subfield monthfield"><input class="birthday " type="text" pattern="[0-9]*" value="" placeholder="MM" size="2" maxlength="2" name="BIRTHDAY[month]" id="mce-BIRTHDAY-month"></span> / 
    		<span class="subfield dayfield"><input class="birthday " type="text" pattern="[0-9]*" value="" placeholder="DD" size="2" maxlength="2" name="BIRTHDAY[day]" id="mce-BIRTHDAY-day"></span> 
    		<span class="small-meta nowrap">( mm / dd )</span>
    	</div>
    </div>	<div id="mce-responses" class="clear">
    		<div class="response" id="mce-error-response" style="display:none"></div>
    		<div class="response" id="mce-success-response" style="display:none"></div>
    	</div>    <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
        <div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_00c66b3cec2a881902ea9c9ea_cea7e7971c" tabindex="-1" value=""></div>
        <div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
        </div>
    
    </div>
    <script type='text/javascript' src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script><script type='text/javascript'>(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email';fnames[1]='FNAME';ftypes[1]='text';fnames[2]='LNAME';ftypes[2]='text';fnames[3]='ADDRESS';ftypes[3]='address';fnames[4]='PHONE';ftypes[4]='phone';fnames[5]='BIRTHDAY';ftypes[5]='birthday';}(jQuery));var $mcj = jQuery.noConflict(true);</script>
    <!--End mc_embed_signup-->

    With this new form that you suggested I’m just getting text back for the birthday section. That’s clearly not as good as what I had before. How do I get that?

    Thread Starter westopher

    (@westopher)

    Okay, so I got the form to work by doing what you suggested I shouldn’t do, which is I copied the code provided by Mailchimp on the Mailchimp dashboard. I don’t know why you told me not to do that.

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hey @westopher,

    Please note that our support is limited to when you use the code our form creates. You are mixing the code from MailChimp.com with our form which we do not recommend.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Merge Fields Error’ is closed to new replies.