Hello.
This error of not beeing able to send a successful message from the contact form is pretty new.
I have to add, i have recently added redis cache to this website, which can also be the cause of this error. The console is not giving me any valuable information and as you can see the “Nonce” Error appears only on the Homepage. Every other Page doesnt appear to be affected by this bug.
Any help is appreciated.
Thanks in advance.
Cheers Omar
In most cases, the error message is actually related to caching. Please deactivate caching on the pages that contain forms and test again to see if it works.
Hey timmse, thanks for your fast response. Yeah i figured is it related to the caching. The Problem: the Contact form is located in the Footer and displayed on every page. So i was wondering if the problem may be something different than caching since the error only appears on the homepage and only there.
Cleared the Caching and its working fine again, but for how long is the question ?
All the best
Omar
We had an internal discussion and I think it’s best to work on a better solution for forms’ nonce generation (e.g. AJAX). We’ve added this to our to-do list. This would allow you to still use forms on cached pages without having to purge the cache every 8-12 hours.
As you may already know, in web development, “nonce” stands for a “number used once” and is used for security purposes. Understanding the different cultural interpretations of this term, I will create a ticket to revise the user-facing error message to something more neutral.
I just sent an email to support regarding this problem. As I wrote there, I used Fluent forms on more than 20 Sites (all hosted on the same Litespeed server) and Litespeed cache plugin. None of them had or have that issue. However, when I start to use the Bricks form element (I have it on 2 of my recent Sites) I start having this problem. So, they are all on the same server (Litespeed) with Litespeed cache. None of the Sites that use Fluent form have any issues. Sites with Bricks form does.
I think Bricks support has to raise that case because we can’t use cache plugins due to that reason. It’s easy to exclude several pages from cacche, but what to do if the form if in the footer, or it is part of the single template for all custom post types - as I have the case? That’s not just the “Contact form” but most of the pages on the Site.
However, maybe the meanwhile solution could be to use the ESI nonce feature in Litespeed cache: Cache WordPress Nonces with ESI ⋆ LiteSpeed Blog - so I kindly please help me with that. What should I write there?
For instance, for the Divi form there are some hints:
et-pb-contact-form-submit
et_frontend_nonce
et_ab_log_nonce
But I have no clue what should I write for Bricks form. Could you please check that?
I am not sure if that will help, but I can try.
Just got feedback from Litespeed Support.
They said we can use a feature called ESI nonce in their plugin (but not sure how Bricks could solve that problem for other cache plugins).
They asked Bricks team for a “nonce name” for Bricks form, so we could exclude that nonce from caching. @charaf - could you please provide that info, so we can solve issue, while we are waiting Bricks team to come up with better solution?
P.S. Please, check also my previous comment!