Skip Navigation

[Resolved] Error "Invalid form submission (nonce failure)" on Toolset Post Form submission

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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 2 replies, has 2 voices.

Last updated by Nigel 7 months, 2 weeks ago.

Assisted by: Nigel.

Author
Posts
#2691549

Hi Support

We are receiving the following error on production when submitting a Toolset Post Form "Post Form - Edit Native Nanny Profile"

"Invalid form submission (nonce failure)"

Judging by the forum, it seems it could have multiple causes.

You can make some minor change and try to submit the form. The error should occur straight away.

I have noticed that pressing the Update Nanny Profile button (German: Profil aktualisieren) at the bottom of the form doesn't work the first time, but the when pressing the second time the form is correctly submitted.

We haven't changed any of the forms recently, so a bit perplexed as to why they are suddenly causing issues. Can somebody please take a look?

Thanks and kind regards
Simon

#2691729

Nigel
Supporter

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

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

Hi Simon

I logged-in and checked and confirm I see the same. I need to investigate why this is happening.

I'm replying now to edit your question to remove the credentials for the test user, and I'll get back to you later this morning.

#2691783

Nigel
Supporter

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

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

I can't spot any obvious problem.

Most of the prior references to nonce issues in support threads relate to problematic releases we had years ago where there was an actual problem affecting all users, or more generally to caching issues.

The nonce generated in a form is only valid for a certain interval (normally between 12-24 hours). If the page containing the form is cached and the cached version is displayed to a user more than this interval after the page (and form) were generated then the nonce will be invalid.

Might that be the issue on your site? Can you clear the cache affecting this page and see if the problem persists?

If it does, can we get a staging server to work on? We'll need to do the usual steps, starting with testing on a minimal install where other plugins have been disabled and the theme switched to a default theme like twentytwentyone.

I'll set a private reply in case you need to provide credentials for a staging server.

#2691791

Hi Nigel

Thanks for that. Clearing the cache resolved the issue.

Kind regards
Simon