My client told me he can’t send with his form on his website (built with a Pro Form). He gets the message: “The cookie check failed” (“Die Cookie-Prüfung ist fehlgeschlagen”) whether in Chrome or Safari. No problems from his iPhone (and no problems on my end).
I found nothing in the documentation about this issue. I have also never experienced it. Do you have any explanation or is there any official (browser?) documentation about this and how to fix it?
Do you have WP_Debug enabled? This could cause issues for ajax processes. Also, you could ask your client to clear the cache. I can’t find issues there.
Also, I never saw this error message. It’s not a part of the Bricksforge code. Seems to be a generic WordPress error message when trying to write to the database or something…
I removed the form for now and used FluentForms Pro because my clients was losing reservations which aint cool. Not saying that BF is the issue though but even when I deactivated some plugins the issue remained. It’s also very hard to find why this happens because just a few days ago all was fine. 11 November the last reservation arrived properly.
I see that caching could cause exactly such issues. Each site refresh generates an unique nonce for security reasons. If its cached, the nonce will be invalid. So I would check the caching configuration here
In my opinion, those nonce should be validated differenty, and never hardcoded directly into the html response at every refresh, because you loose the ability to cache the document and avoid php execution if you know your content is not changing
No, and I would definitely not recommend it to prevent Cross Site Scripting. The way to go here would be to adjust the caching lifespan. Nonce tokens are valid for 12 hours. Setting the cache lifespan to 10 hours or less should make sure to always have a valid nonce.
Check a post of WP Rocket for further informations:
We have the same problem on a page with a Pro-Forms form. However, we have even deactivated caching (from WP-Optimize). The error message also appears when submitting. We use Complianz as a cookie blocker. With Real Cookie Banner, the error no longer seems to occur. However, the plugin is annoying and we would like to use Complianz again
Any ideas what else the problem could be?
It’s always a caching reason. Set the cache lifespan to 10 hours or less and the problem should be solved. I don’t know, has the Complianz plugin a caching functionality integrated? I think that would be a good question to their support team
My client can’t send the form because of a “The cookie check failed” notice. She tried from different browsers and devices, and all the time is getting this notice.
However, I try to reproduce this, and I can send the form without any issue, so I don’t know what to do to solve this!
If it has anything to do with it, I am also using Complianz.