Skip Navigation

[Resolved] Front-end forms give nonce validation error

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 8 replies, has 3 voices.

Last updated by Minesh 7 months ago.

Assisted by: Minesh.

Author
Posts
#2697370
nonce-error.png

Hi,

We're using some front-end forms for website were users can register for an event.

Forms are mostly working fine, but at some point - usually after some, seemingly arbitrary time - all forms get the same 'nonce validation failed' error.

I tried disabling all hooks we use for the forms, but this doesn't help. The error occurs on localhost, development on the live website.

Clearing cache, using a different browser, etc.. doesn't seem to help.
Usually the error resolves after some time passes, not sure why.

Once the error occurs it seems to be happening to all (or most) of the users at the same time.

As a quick - temporary - fix. Can we disable nonce entirely?

Thanks in advance.

EDIT: the forms are only available to registered users. I can provide credentials if need be.

#2697553

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

I think we would likely need access to the site to be able to look into the problem, yes.

Over the years the various reports of something similar tend have depended on something particular about the set up, and it doesn't appear to be a problem more generally (we have no other reports at the moment).

Let me mark your next reply as private so that we can get log-in credentials from you—preferably for a development server—and you may want to create a temporary admin user for us to use that you can later delete. And be sure to have a current backup of your site.

Can you also confirm the workflow which leads to the problem.

#2697752

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Thank you for sharing access details.

I logged in to see where I can see the problem but with the the portal dashboard you shared I wonder where to look at the problem.

May I kindly ask to to share exact steps we have to follow that should lead us to see the problem that should help us to investigate this issue further.

You can share problem URL and steps we have to follow to see the issue.

I have set the next reply to private which means only you and I have access to it.

#2697814

Hi Minesh

Once logged in you can find the form here: hidden link
Or hidden link for EN.

As I said it's hard to share further steps. A lot of the time the form just works fine. It's after some time, filling in the form a couple of times (you'll need to delete the entry after filling in the for, because you can only submit once) that the error pops up.

This is the case for all the forms you'll find in the portal after completing the first form.

Thanks in advance!

#2698270

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

We had similar issue reported and it was resolved by deleting the cache. Please check the following related ticket:
- https://toolset.com/forums/topic/error-invalid-form-submission-nonce-failure-on-toolset-post-form-submission/#post-2691783

What if you try to delete the cache and check if that help you to resolve your issue.

#2698275

Hi Minesh

Thanks for the suggestion. I've also found the thread you refer to while troubleshooting the issue myself but sadly that didn't do anything when the error occured. Users reported the same.

When the nonce validation errors pops up, it also doesn't matter if I switch to another browser or device. The error will still show.

#2698284

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I just checked by registering a new user and I do not able to reproduce the issue you mentioned.

I will require exact step information that should help us to reproduce the issue in order to investigate the issue further. Without step information to reproduce the issue we are helpless as we do not see the issue yet with the test site you shared.

#2698977

Hi Minish

Thanks for investigating further.

Sadly, there is no surefire way to trigger the issue every time. As I said it usually takes filling out multiple forms.

I can report when the issue occurs again, but the issue also resolves itself after a certain amount of time, so by the time you guys can look at it, the error would probably be gone again. Furthermore, this would probably be on the live website.

Not sure how to continue.

#2699067

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

You should keep eye on issue and try to get exact steps to reproduce the issue and then get back to us and we will continue from there.