Hi Richard,
Thanks for reaching out to us. We are sorry for the inconvenience.
Please add the below snippet using the Code Snippets plugin. I have already informed the issue to our development team. They are working on this issue. Once I get an update I will let know here. Till then use the below snippet:
add_action('woo_variation_swatches_manage_cache_loaded', function( $woo_variation_swatches_manage_cache_loaded ){
remove_action( 'woocommerce_delete_product_variation', array( $woo_variation_swatches_manage_cache_loaded, 'clear_cache_on_product_modify' ) );
}, 10, 1);
Thanks in advance for your patience.
Fatal error when deleting variable products
Richard Misencik
Hi, when deleting products with variations, this error happens:
Fatal error: Uncaught Error: Call to a member function get_parent_id() on bool in …/wp-content/plugins/woo-variation-swatches/includes/class-woo-variation-swatches-manage-cache.php:148
Stack trace:
#0 …/wp-includes/class-wp-hook.php(308): Woo_Variation_Swatches_Manage_Cache->clear_cache_on_product_modify(217165)
#1 …/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)
#2 …/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#3 …/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php(676): do_action(‘woocommerce_del…’, 217165)
#4 …/wp-content/plugins/woocommerce/in in /…/wp-content/plugins/woo-variation-swatches/includes/class-woo-variation-swatches-manage-cache.php on line 148