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

Failed nonce security check. Please reload the page and submit this form again. #250

Closed Lobelio closed 9 years ago

Lobelio commented 9 years ago

Hi, I get this error on the 2 forms I'm using on this website:

http://www.gowildfilms.com/joinus/ http://www.gowildfilms.com/yourstory/

Plugin Version 5.4.3 Wordpress Version 4.1.2 Browser Information Google Chrome 42.0.2311.90 on Windows Server Information Apache

Thanks in advance

EvanHerman commented 9 years ago

Hi,

This generally happens when you are using some sort of caching plugin or your host is using aggressive caching. The nonce security check is in place to prevent XSS attacks. You may want to double check that caching isn't effecting our plugin.

Thanks, Evan

Lobelio commented 9 years ago

Sorry, Evan, I found the problem (my fault): I'm using a custom bolierplate template without this function "getFrontendFormDisplay($list, $submit_text)"; Instead I basically copied the source code from the original form and pasted it in my own custom_header_template_boilerplate.php

I'm using this function for the nonce field but it's not working: <?php wp_nonce_field(); ?> I think that the form is not receiving the right _wpnonce value

Any chance you could tell me how to solve this issue? I'm really happy with this plugin but my php knowledge is not that good to solve this issue.

Best, Teo

Lobelio commented 9 years ago

Hi Evan,

Finally, I found what I needed. This is the code and the correct string that the plugin is using: <?php wp_nonce_field( 'yks_mc_front_endform'.$form_id[1] ); ?>

Thanks, Teo