Uncaught TypeError: Cannot read property ‘replace’ of undefined
-
Hi
We are using WPML and translated the form. Used the codes the forms looks fine but we get error everytime trying subcribe.
On Chrome
Uncaught TypeError: Cannot read property ‘replace’ of undefined
at Object.getAjaxSubmitUrl (mc-validate.js:195)
at mc-validate.js:351
at mc-validate.js:373On Firefox
Uncaught TypeError: url is undefined
getAjaxSubmitUrl https://s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js:195
<anonymous> https://s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js:351
<anonymous> https://s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js:373Besides, is it possible to use multiple forms for other lists on mailchimp? If so how?
further update;
The logs;
form 14931 > Mailchimp API error: 400 Bad Request. Invalid Resource. Your merge fields were invalid.
– MMERGE1 : Please enter a value
Request:
PATCH https://us13.api.mailchimp.com/3.0/lists/f58488760f/members/ffe1a4e3a7436868f151e7469c0515a6
{“status”:”subscribed”,”email_address”:”foht**@ya***.com”,”interests”:{“d7b4ba081a”:false,”824526c510″:false,”0bf2ec8ccc”:false,”9e1cac6705″:false,”9efcf4f05f”:false,”c055495524″:false,”98a894a054″:false,”addc1ab512″:false,”b29bf449e4″:false,”84cfb4d764″:true,”cf60294cec”:false,”80d5a3fd41″:false,”ad7ad15a63″:false,”d96d8b10e3″:false},”merge_fields”:{“MMERGE4″:”T\u00fcrkiye”},”email_type”:”html”,”ip_signup”:”95.70.132.184″,”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”:”1075ed35-2d84-46ed-b4f2-3f6d86694d52″,”errors”:[{“field”:”MMERGE1″,”message”:”Please enter a value”}]}Field MMERGE1 giving error? Any idea?. Should I remove this field or give it a new name?
The page I need help with: [log in to see the link]
- The topic ‘Uncaught TypeError: Cannot read property ‘replace’ of undefined’ is closed to new replies.