Hi Dave,
Thanks for reaching out to us. Sorry for your inconvenience.
Please add the below snippet using the Code Snippets Plugin:
add_action('woo_variation_swatches_manage_cache_loaded', function( $woo_variation_swatches_manage_cache_loaded ){ remove_action( 'woocommerce_save_product_variation', array( $woo_variation_swatches_manage_cache_loaded, 'clear_cache_on_product_modify' ) ); remove_action( 'woocommerce_update_product_variation', array( $woo_variation_swatches_manage_cache_loaded, 'clear_cache_on_product_modify' ) ); remove_action( 'woocommerce_delete_product_variation', array( $woo_variation_swatches_manage_cache_loaded, 'clear_cache_on_product_modify' ) ); remove_action( 'woocommerce_trash_product_variation', array( $woo_variation_swatches_manage_cache_loaded, 'clear_cache_on_product_modify' ) ); }, 10, 1);
Then try again and let me know if it resolves your issue or not.
Thank You
Fatal Error with v2.0.13
Dave Spohn
I started seeing this fatal error since v2.0.13 (I updated my plugin November 17/22).
My scenario:
I went in to an existing variable product. I had to add a new variation and remove one variation that I added in error. I started with “Medium”, “Large”, “X-Large” and then went and added “Small” and “2X”. I had to then remove the “2X” variant. I hit save in the variable screen and then hit save for the main product. I was then presented with a nice white screen telling me my site has experienced a fatal error. This is the second time I have had this happen. Luckily, the site is still operational (admin section and live site). I just hit my back button and I can continue editing my product. I do reuse “old” products (some with variants and some single products). This behavior was not present in past versions of your plugin.
****I do not know if your plugin will throw an error on a new product. I haven’t had to create one that uses swatches yet. I can verify it does not like working with an existing product (with variants), if a variant is added or removed.
**Sorry, for the time being, I am not giving access to my live site and hope you can understand my wish.