EvanHerman / yikes-inc-easy-mailchimp-extender

Easy Forms for MailChimp WordPress Plugin
http://yikesplugins.com
GNU General Public License v2.0
25 stars 28 forks source link

Page just refreshes on 'submit' click #93

Closed riweb closed 10 years ago

riweb commented 10 years ago

Hi, I have added a form here: http://www.ri-web.com/half-price-websites

Which is not working at all. Nothing happens when you clikc submit except the pages refreshes.

Please help.

Ryan

EvanHerman commented 10 years ago

Hi,

I don't see the form on the page you are referencing. You also have two JavaScript errors on the page.

Thanks, Evan

riweb commented 10 years ago

Wow! That's a fast response! Thanks!

The form is just an email sign-up box within the slider:

untitled-1

How do I fix the JavaScript errors?

EvanHerman commented 10 years ago

Are you using some sort of script minifier? Maybe Better WP Minify, or some caching plugin or something? I'm only asking because our java script looks like it's being minified which is causing some of the script to be commented out.

I'm sure that's why the page is refreshing and not sending the data to MailChimp. The JavaScript isn't being executed because it's commented out.

riweb commented 10 years ago

Not that I'm aware of?

EvanHerman commented 10 years ago

I would try and figure out why the script is being minified, because that is what is causing the error for you.

Evan

riweb commented 10 years ago

I wouldn't even know where to start with that?! Are you able to help me?

EvanHerman commented 10 years ago

Yea , I can take a look for you if you would like. I would need a temporary admin account to take a look at what's going on with the scripts.

You can email me at Evan@Yikesinc.com and I'll take a look as soon as I can.

Thanks, Evan

EvanHerman commented 10 years ago

Hey Riweb,

I was able to resolve the issue fairly quickly. One of the settings within Layerslider is 'Concatenate Output', which means it was just minifying and combining each line of the script into a single line. Since we have a few notes in the plugin code (for other developers to reference), when the script got concatenated (or combined into a single line) one of our comments was commenting out every subsequent line, and only causing half of the script to actually run and then throwing an error, thus the page refresh.

Once I toggled off that settings things worked as intended, and the MailChimp signup form was functioning properly.

Take a look at the screenshot for reference of that setting. Things should be working properly now. If you notice anything odd, please let me know!

Layer Slider Concat. Setting

Thanks, Evan