When trying to edit a product, in the product data I get a fatal error.
LINK wideo YT: https://youtu.be/PSgPrYxV6RQ
It looks as if the product has switched from a product with variants to a simple product mode.
And it forgets attributes.
However, it is displayed normally on the website. With attributes and variants.
The problem occurred mainly where the product had 2 variants.
I went to log this is what I got.
WordPress w wersji 5.8.3
Aktualny motyw: XStore Child (wersja 0.0.1)
Aktualna wtyczka: WooCommerce (wersja 6.1.1)
Wersja PHP: 7.4.27
Szczegóły błędu
===================
Błąd typu E_ERROR został spowodowany w linii 20 pliku /var/www/tartak-meble.com.pl/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-panel.php. Komunikat błędu: Uncaught Error: Call to a member function get_type() on bool in /var/www/tartak-meble.com.pl/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-panel.php:20
Stack trace:
#0 /var/www/tartak-meble.com.pl/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php(33): include()
#1 /var/www/tartak-meble.com.pl/wp-admin/includes/template.php(1395): WC_Meta_Box_Product_Data::output(Object(WP_Post), Array)
#2 /var/www/tartak-meble.com.pl/wp-admin/edit-form-advanced.php(688): do_meta_boxes(Object(WP_Screen), ‘normal’, Object(WP_Post))
#3 /var/www/tartak-meble.com.pl/wp-admin/post.php(206): require(‘/var/www/tartak…’)
#4 {main}
thrown