To sum up, sometimes products are not added to the cart and I noticed a "permissions check failed" as response to the ajax request made by the WPC AJAX Add to Cart plugin.
We use: cloudways server, breeze cache plugin, object cache pro plugin, cloudflare enterprise addon with edge cache turned on. We use porto theme. Wordpress, woo and theme are all in the latest version.
So it seems that if I add add_filter( 'woofc_disable_security_check', '__return_true' ); my problem might be solved, right? Will this have any side effect? I undestand this will switch off the nonce thing...is that right?
However, if you're using various levels of cache and that method doesn't work, please add the custom code below (How to add custom code? ↗) to prevent the nonce check for both WPC Fly Cart and WPC AJAX Add to Cart.
Hi.
I am facing this very annoying problem with WPC Fly Cart for WooCommerce for a while now. Last time it seems it was fixed by adding the plugin https://wordpress.org/plugins/wpc-ajax-add-to-cart/ mentioned in another thread (https://wordpress.org/support/topic/your-mini-cart-doesnt-update/). You can see the problem here: https://streamable.com/7eoc4m
To sum up, sometimes products are not added to the cart and I noticed a "permissions check failed" as response to the ajax request made by the WPC AJAX Add to Cart plugin.
We use: cloudways server, breeze cache plugin, object cache pro plugin, cloudflare enterprise addon with edge cache turned on. We use porto theme. Wordpress, woo and theme are all in the latest version.
My research shows that this error message "permissions check failed" is related to nonce https://prashantwp.com/cve-2021-34629-sendgrid/
This https://wordpress.org/support/topic/object-cache-pro-3/ might b emy case also, since we're using this plugin too.
I bougth your plugin so I could have access to paid support. I've just found https://wpc.ticksy.com//ticket/3671974/ and https://wpc.ticksy.com//ticket/3665996/ .
So it seems that if I add add_filter( 'woofc_disable_security_check', '__return_true' ); my problem might be solved, right? Will this have any side effect? I undestand this will switch off the nonce thing...is that right?
I think this is a better fix than dealing with caches lifespan as described here: https://docs.wp-rocket.me/article/975-nonces-and-cache-lifespan since I have various levels of cache: breeze, object cache, cloudflare...
Can you please help me?
Thank you!
Hi Marcelo,
Yes, that's right! It's better to follow this article https://docs.wp-rocket.me/article/975-nonces-and-cache-lifespan to fix the issue.
However, if you're using various levels of cache and that method doesn't work, please add the custom code below (How to add custom code? ↗) to prevent the nonce check for both WPC Fly Cart and WPC AJAX Add to Cart.
Disabling the nonce check does not cause any problems sitewide, as the shopping cart functionality only works for specific customers.
Best regards,
Dustin
Hi Dustin,
I tried to reply before but my reply wasn't saved.
Thank you for your help!