Support forumCategory: Questions"Form validation code expired. Please refresh page in order to continue."
ben asked 5 years ago

Hello,
I believe I have the settings all setup correctly. I am just trying to test the plugin to see if it is something we could use on a site we are currently building. When I go to the page with the form, I get this error “Form validation code expired. Please refresh page in order to continue.”
Any idea what could be causing it? Thanks!

Schedule An Appointment

ben replied 5 years ago

Updated – The form is working in Chrome but I am still getting the error in safari

3 Answers
Falko answered 5 years ago

Hello,
for a few weeks now I sometimes get the same error message:
Form validation code expired. Please refresh page in order to continue
A few more informations about the error:
– the error might appear on one PC/smartphone while at the same time there is no error on another PC/smartphone
– the error message appears after selecting the appontment location (I only have one worker and one service set up so these fields do not show up on my site)
– I use caching on my site (WP Super Cache), when clearing the cache, errors seem to disappear for a few hours (I’ll try to disable caching to see if this is the reason for the error)

Any other ideas? Thanks 
Falko

Nikola Loncar Staff answered 5 years ago

Hi,

that token is there as I way of protecting the site from ajax calls that are not valid. Issue can be if browser keeps cached version of site and there for the old token that has expired. I can add option that will turn off token (nounce) validation but is not something that I would suggest.

Best regards,
Nikola

ben replied 5 years ago

Thanks, it was actually the cache. Seems to be working now. Thanks

dklamie replied 5 years ago

Hi Nikola,

got the same error – using WP Fastest Cache plugin in WordPress and Cloudflare’s caching. Do you have any suggestions what to exclude from cache so this error will not appear again?

Thanks in advance

Nikola Loncar Staff replied 5 years ago

Hi you need to exclude page where you have customers form. Because nonce is part of html page.

Best regards,
Nikola

dklamie replied 5 years ago

Hi Nikola,

thanks for the fast reply.

Currently the form is on all of our pages so turning off cache would mean disabling the cache altogether – is there another way of avoiding the validation code expired error?

Thanks in advance

cole_enabnit replied 5 years ago

I am having the same issue on Safari and Firefox. Chrome works. Cleared all caches. Excluded the page with the calendar on WP Fastest Cache. I’m using MAXCDN. Not sure if that matters.

Nikola Loncar Staff replied 5 years ago

Hi, I will add option to turn it off if you want.

Best regards,
Nikola

cole_enabnit replied 5 years ago

Here’s a link: http://pdximmigration.com/consultation/

cole_enabnit replied 5 years ago

Is there a way to fix it without turning it off? Seems like there must be since Chrome is working.

Nikola Loncar Staff replied 5 years ago

You are probably logged in on Chrome to your WP site.

Best regards,
Nikola

dklamie replied 5 years ago

I would be interested in the option to turn it off, if no other solution was available.

cole_enabnit replied 5 years ago

Nikola, thank you for the quick responses. Yes, I was logged in on Chrome. And, yes, when I logged out I got the same error message on Chrome. Here’s what I have tried:
– purging the cache on MAXCDN;
– deleting the cache on WP Fastest Cache;
– clearing all the browser caches.
Are you getting the same error message at the link I provided?

cole_enabnit replied 5 years ago

Okay, seems to work now! I had to “Purge All” on the WordPress dashboard. Not sure if I needed to do all that other clearing and purging or if this would have solved the problem but things seem to be running smoothly now.

dklamie replied 5 years ago

@cole_enabnit

seem that it works only temporary, after a day or two the error re-appears

cole_enabnit replied 5 years ago

@dklamie. Bummer. Well, I hope the issue is fixed by then.

Nikola Loncar Staff answered 5 years ago

Hi,

new version is available for download (2.1.4) . There is option called Turn nonce off inside EA Settings > Customize page. Please mark that option and try again.

Best regards, Nikola

dklamie replied 5 years ago

Hi Nikola,

disabled nonce and turned the caching back on. Will let you know if the error reappears.

Thanks for the prompt changes!

dklamie replied 4 years ago

Hi Nikola,

unfortunately, with the latest update, the error started to reappear. Nonce is disabled in the options.

Any ideas what happened?

Thanks in advance.

Nikola Loncar Staff replied 4 years ago

Hi I will have to check that. On my local WP site it’s working fine. 🙁

Best regards,
Nikola

dklamie replied 4 years ago

This is happening in combination with wpfastestcache plugin.

Nikola Loncar Staff replied 4 years ago

Can you please turn off cache for that page.

Best regards,
Nikola