I also submitted ticket on crocoblock but they couldn’t resolve it. Adding this line of code in functions.php, didn’t work as well.
add_filter('jet-form-builder/security/csrf-token/datetime-limit', function ($datetime) {
return $datetime->modify( '-8 hours' );
});
Plugin Support
qtwrk
(@qtwrk)
add nonces into esi nonce list is not engouh , you need to toggle “enable esi” to on , that is the master switch
I enabled ESI
– Website slows down extremely.
– JetEngine’s “profile builder” pages duplicates it’s content and doesn’t stop duplicating. (console errors: https://imgur.com/a/bbwt87R)
– Nonce error doesn’t resolve.
I was wondering, if ESI is the correct approach to fix JetFormBuilder’s nonce failure?
By the way, purging cache doesn’t work as well
Plugin Support
qtwrk
(@qtwrk)
okay , that means ESI may not be compatible in your site
for such case, the only alternative is set a short cache TTL, like 12 hours or lower , to satisfy the nonce lifespan
i set TTL waited at least 1 day to try again, didn’t work out. I get nonce_failed error still.
https://imgur.com/a/vUZL9oM
i don’t know how but i does only happen to admin user, other users can submit forms without error
Plugin Support
qtwrk
(@qtwrk)
please share the http response header on the page, when you get that error.
Plugin Support
qtwrk
(@qtwrk)
no no , this is redirected , as after nonce failed message, I was asking the one before you submit
https://imgur.com/a/nUMJvg2
i hope its the correct one
Plugin Support
qtwrk
(@qtwrk)
okay , now that makes no sense , let’s rewind this
based on your first topic , when that occurs , if you only do purge object cache , will it work ?
this error started at least 1 months ago, but i am not sure if it started with litespeed installation or not.
At start, i was using litespeed for only object cache and evertyhing else was disabled. Nonce validation was still failing. Tried disabling object cache and purging it but didnt work out. Only nonce validation worked when litespeed is deactivated.
I didnt work on this problem much at that time and enabled other features for css, js, browser cache etc. but error was still there.
At this stage of my website, litespeed boosted my performance significantly and i don’t want to deactivate it. Other users seem to not effected by nonce error except admin user. By the way, i disabled plugins which is admin tools such as query monitor, but didnt work out too. I can send plugins list if necessary.
Plugin Support
qtwrk
(@qtwrk)
the only thing that possibly interact with nonce is the ESI , but your case seems have ESI disabled
but let’s just make sure it is off , please go to toolbox -> import/export -> reset to default setting , try the default , without object cache , see if it works
tried resetting settings to default and purged cache, deleted browser cache and logged in again as admin but didn’t work out. Things I tried also:
1- disabled all of the plugins that doesn’t effect front-end, didn’t work.
2- tried ESI again without but still no good.