Fatal error in plugin

FAtal error with the latest version of Woocommerce and WordPress:

 

Fatal error: Uncaught Error: Call to undefined method WC_Product_Simple::get_variation_attributes() in /home/major4x4/public_html/wp-content/plugins/woo-variation-swatches/includes/hooks.php:91 Stack trace: #0 /home/major4x4/public_html/wp-includes/class-wp-hook.php(288): Woo_Variation_Swatches->{closure}(12127) #1 /home/major4x4/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array) #2 /home/major4x4/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /home/major4x4/public_html/wp-content/plugins/woocommerce/includes/wc-product-functions.php(130): do_action(‘woocommerce_del…’, 12127) #4 /home/major4x4/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php(842): wc_delete_product_transients(12127) #5 /home/major4x4/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php(263): WC_Product_Data_Store_CPT->clear_caches(Object(WC_Product_Simple)) #6 /home/major4x4/public_html/wp-content/plug in /home/major4x4/public_html/wp-content/plugins/woo-variation-swatches/includes/hooks.php on line 91

Ahmed Ehsaan

We’ve pushed our latest version 66 for you. Try to upgrade the version. Hopefully, it will be fixed.