Title: Nonce error woocommerce
Last modified: May 14, 2026

---

# Nonce error woocommerce

 *  [blobmallett](https://wordpress.org/support/users/blobmallett/)
 * (@blobmallett)
 * [3 days, 19 hours ago](https://wordpress.org/support/topic/nonce-error-woocommerce/)
 * Using WP-Optimize to evaluate and it is not working well with woocommerce. Produces
   Nonce is invalid on the cart when activated and even with cache turned off. Anyone
   had this problem and maybe a solution? Cache settings not relevant as it still
   produces the error just with the plugin activated and cache off.

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [3 days, 18 hours ago](https://wordpress.org/support/topic/nonce-error-woocommerce/#post-18908221)
 * If the “invalid nonce” error occurs on specific pages, consider disabling caching
   for those pages. Exclude the relevant pages from caching under Cache >> Advanced
   settings >> URL’s to exclude from caching
 * Nonces are specific per user. If you have activated caching for logged in users,
   deactivate the cache for users who are currently logged in.
 * If you continue to experience nonce-related issues, you can disable nonce verification
   by using the filter;
 * add_filter( ‘woocommerce_store_api_disable_nonce_check’, ‘__return_true’ );
 *  Thread Starter [blobmallett](https://wordpress.org/support/users/blobmallett/)
 * (@blobmallett)
 * [3 days, 4 hours ago](https://wordpress.org/support/topic/nonce-error-woocommerce/#post-18908697)
 * Thanks for that suggestion but as I said just activating the plugin with the 
   cache turned off causes the Nonce error. I just tried it again and stepping through
   the cart is OK but if I go to cart and remove a product it will not delete and
   just says Nonce is invalid on the page. I can’t adjust cache settings as it is
   not even on.
 *  Thread Starter [blobmallett](https://wordpress.org/support/users/blobmallett/)
 * (@blobmallett)
 * [3 days, 4 hours ago](https://wordpress.org/support/topic/nonce-error-woocommerce/#post-18908700)
 * Also the filter is not recommended:
   NOTE: This should only be done on development
   sites where security is not important. Do not enable this in production.
 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [3 days, 2 hours ago](https://wordpress.org/support/topic/nonce-error-woocommerce/#post-18908751)
 * Can you clear any server cache as well as your browsing history/cookies, what
   is your site URL?
 *  Thread Starter [blobmallett](https://wordpress.org/support/users/blobmallett/)
 * (@blobmallett)
 * [3 days, 2 hours ago](https://wordpress.org/support/topic/nonce-error-woocommerce/#post-18908777)
 * Thanks. The URL is [http://www.jtpml.co.uk/](http://www.jtpml.co.uk/). The Nonce
   error clears as soon as I deactivate the plugin and returns immediately if I 
   re-activate. It is currently deactivated.
 *  Plugin Support [jbgupdraft](https://wordpress.org/support/users/jbgupdraft/)
 * (@jbgupdraft)
 * [2 days, 21 hours ago](https://wordpress.org/support/topic/nonce-error-woocommerce/#post-18909045)
 * Hi,
 * Can you try disabling the Javascript minification features in WP-Optimize > Minify?
   I’m browsing the site now and see that there are some minified scripts, and when
   visiting the cart I also noticed that the cart was already filled with a couple
   of items which normally shouldn’t be the case since it’s my first visit to the
   site.
 * For the nonce errors, are you seeing these in the PHP error log or in the browser
   console? I’m not seeing them in the browser console so just wanted to double 
   check this with you.
 * Thanks!
 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [2 days, 20 hours ago](https://wordpress.org/support/topic/nonce-error-woocommerce/#post-18909132)
 * Your site does not have a valid ssl certficate
 * A “nonce verification failed” error in WooCommerce is often indirectly caused
   by SSL/HTTPS configuration issues, mixed content errors, or aggressive caching.
   Since nonces are used for security, a mismatch between the HTTP and HTTPS versions
   of your site or expired caching causes the validation to fail.
 * I do hear that you have not enabled caching in WPO but could you make sure that
   your hosts have flushed your server cache?
 * Can you do this and set up your SSL certificate and see if the issue persists?
 *  Plugin Support [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * (@vupdraft)
 * [47 minutes ago](https://wordpress.org/support/topic/nonce-error-woocommerce/#post-18910952)
 * Hi Bob,
 * I can see that you have added an SSL certificate, at the moment I am not getting
   the error.
 * Have you deactivated WPO?

Viewing 8 replies - 1 through 8 (of 8 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fnonce-error-woocommerce%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [vupdraft](https://wordpress.org/support/users/vupdraft/)
 * Last activity: [47 minutes ago](https://wordpress.org/support/topic/nonce-error-woocommerce/#post-18910952)
 * Status: not resolved