Mailchimp Subscribe adds to list, but 404s

6 replies · opened Jul 13, 2016

MmerlingothJul 13, 2016

Hello,

I have the mailchimp code copied directly from one of the HTML pages, and when I click submit on my form, I get a 404 "SITEROOT/undefined" error--however, the email address gets added to the mailinglist. I can't sort this out, but it seems that my List ID and API Key are correct because email addresses are added successfully to the appropriate list. If it helps, when you try to submit the same email address, a proper message shows "Member Already Exists".


Subscribe
SspidometrsJul 13, 2016

I also have a worse problem.
I did not change anything in the full-width.html page.
See this page Canvas http://mail.spido.ru/full-width.html
I only changed two fileЖ include/sendemail.php and include/subscribe.php, added smtp settings and MailChimp IDs.
After entering an email for the subscription page is redirected to the URL http://mail.spido.ru/undefined
At this time a new email is added to the list of subscription to mailchipm.com. With that all is well.
But why there is a redirect on /undefined ?
Can you help me fix this problem?

MmerlingothJul 15, 2016

:: bump ::

SSemicolon WebSTAFFJul 15, 2016

Hello,

We Really Apologize but there is a Minor Bug in the Code. Please find the following code in the subscription: function() Function Block inside the js/functions.js File:

if( data.alert != 'error' && elementRedirect != '' )

and replace it with:

if( data.alert != 'error' && elementRedirect )

This will definitely fix the issue. Let us know if we can help you with anything else or if you find any further issues.

MmerlingothJul 15, 2016

Works!! And for those looking for the exact code line number, it's 3275.

Thanks!

SspidometrsJul 16, 2016

Yes, now it works correctly.
Thanks!

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard