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?
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.
How do I find the failing CRED form on the front-end of the site?
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
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.
Thanks for the reply Christian; appreciate you looking into it further.
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.
Thanks very much for your help, this has worked and they seem to be saving fine now!