Skip Navigation

[Resolved] Invalid Form Submission (nonce failure)

This thread is resolved. Here is a description of the problem and solution.

Problem: I'm receiving an error message "Invalid form submission (nonce failure)" when I submit a CRED form.

Solution: Ensure all the content is included inside the cred_form shortcodes.

This support ticket is created 6 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 7 replies, has 2 voices.

Last updated by jamesT-5 6 years, 6 months ago.

Assisted by: Christian Cox.

Author
Posts
#805232

Hello,

I have a CRED form within a content template and on submission (ajax or normal), the nonce error appears.

I have narrowed it down to a conflict between a plugin which is part of a very good premium theme called Minimall. Deactivating the plugin stops the problem. But it's intermittent because it was working fine for a while but i added more fields etc and then stopped working.

The add on is: TTFB Toolkit

It extends functionality to TTFB Themes, providing Font Awesome icons, alerts and more.

This theme if you've not come across it before is extremely lightweight, definitely the fastest WP theme on the market and i've never had a problem with it before.

Please can you advise?

#806687

Hi, I'm not familiar with this theme or its extension plugin, but I will download the Duplicator package from your site and try to reproduce the issue locally. Stand by and I will update you shortly.

#806745

How do I find the failing CRED form on the front-end of the site?

#807025

Hi Christian

Thanks for getting back to me. If you've not seen this theme before, check it out - it's loading speeds are seriously impressive even with Visual Composer enabled you can get sub 1 second on GT metrix.

The failing form is via the Dashboard Page > then click Edit on one of the posts in the view. I've just realised you won't be able to see any of the values being output by the View because it filters by author. Under the Post Type "Project Tasks" if you switch any of those posts to make your toolset login the author, you can then visit the front end and you'll see the Edit button.

Then if you edit any of those posts and hit Save Task, it'll throw up the error (conflicting plugin TTFB Toolkit needs to be activated to see it).

Thanks again,

James

#832752

Okay thanks. I'm able to reproduce the problem with your Duplicator clone, but on my end it seems to be tied to WPBakery Page Builder as well. If I deactivate either TTFB Toolkit or WPBakery Page Builder, or activate a default theme like Twenty Seventeen, the problem goes away. I haven't been able to replicate this on a clean installation, so I have asked my 2nd tier team to investigate. I tried to update to the latest RC versions and got a Fatal Error, most likely because Relationship Migration hasn't been run. Once I ran the migration script from Toolset > Settings > Custom Content, the Fatal Error disappeared, but the nonce error remained. At any rate, I will ask my 2nd tier team to take a look and I will update you when I receive some additional information.

#841148

Thanks for the reply Christian; appreciate you looking into it further.

#872701

Okay thanks for your patience. Regarding the Fatal Error I experienced when updating to the latest version of the Release Candidates, that will be resolved in the next release. The nonce error seems to be caused by the arrangement and nesting of WPBakery and CRED shortcodes in the form builder. To resolve the nonce error, you must change the CRED form so that everything in the CRED form builder is contained within the credform tags, like this:

[credform class='cred-form cred-keep-original']
[vc_column width="2/3"][vc_column_text]
Hello <strong>[wpv-user field="user_login"]</strong>,
... your form code continues here...
[/credform]

Please give this a try and let me know if the problem is not resolved.

#882590

Thanks very much for your help, this has worked and they seem to be saving fine now!