Plugin Contributor
Lap
(@lapzor)
Please update the MC4WP plugin to the latest version. If that still doesn’t solve the issue, please let me know the exact error that you see under MC4WP > Other after trying the form.
Hope that helps. If you have any questions, please let me know!
it is updated. It just happened after the last update.
I have Version 4.8.8
I have no error in the backend. Just in the frontend, when a new user wants to subscrieb to our newsletter there is always the “Oops….” message like there is an error.
I can send you a report if you give me instructions what you need.
Plugin Contributor
Lap
(@lapzor)
Can you double check under MC4WP > Other, is there any error in the log there?
ah okay, ther seem to bee several errors concerning addresses. but we don’t ask for addresses. and there is an API error, but when i connect with the API it sais it is correct.
the logfile is very long. here is what it sais at the end:
{"type":"https://mailchimp.com/developer/marketing/docs/errors/","title":"Invalid Resource","status":400,"detail":"Your merge fields were invalid.","instance":"13dc0c08-b1d5-91ee-1703-55de193351c0","errors":[{"field":"ADDRESS","message":"Please enter a complete address"}]}
[2022-09-08 18:43:18] ERROR: Form 4749 > Mailchimp API error: 400 Bad Request. Invalid Resource. Your merge fields were invalid.
- ADDRESS : Please enter a complete address
Request:
POST https://us13.api.mailchimp.com/3.0/lists/6efd8cbc0e/members
{"status":"pending","email_address":"test@te*********.com","interests":{},"merge_fields":{"ADDRESS":{"addr1":"","city":"","state":"","zip":"12345"},"FNAME":"test","MMERGE3":"01\/01"},"email_type":"html","ip_signup":"213.248.108.233","tags":["willkommensrabatt"]}
Response:
400 Bad Request
{"type":"https://mailchimp.com/developer/marketing/docs/errors/","title":"Invalid Resource","status":400,"detail":"Your merge fields were invalid.","instance":"6814a558-71bd-307d-52f7-b53f9715b755","errors":[{"field":"ADDRESS","message":"Please enter a complete address"}]}
Plugin Contributor
Lap
(@lapzor)
I do not recommend using the field of type “address” in Mailchimp. It has very strict validation and needs to be a full and complete address with state and country and everything or else Mailchimp will just drop the whole address. So you can’t only send the postal code.
Better to use normal text field for the data you want to collect, then you won’t have this issue.
I removed the field comletely, but still the error.
I have this in my form now:
<p>
<label>Name</label>
<input type="text" name="FNAME" placeholder="Vorname" required>
<label>E-Mail: </label>
<input type="email" name="EMAIL" placeholder="Deine E-Mail Adresse" required />
<label>Geburtstag</label>
<input type="text" name="MMERGE3" placeholder="01.01."
required="">
</p>
<p>
<label>
<input name="AGREE_TO_TERMS" value="1" required="" type="checkbox">Ich habe die <a href="https://shop.widda-berlin.de/datenschutzerklaerung/" target="_blank">Datenschutzerklärung</a> zur Kenntnis genommen.
</label>
</p>
<p>
<input type="submit" value="Absenden">
</p>
Plugin Contributor
Lap
(@lapzor)
What error do you see in the log on MC4WP > Other if you test the form now without the postal code field?
Thanks for letting me know.
I used a fake email address that was the problem. now ot works. thank you!