Hi there
This morning we noticed our website is malfunctioning: cherryred.co.uk – it is loading really weirdly and there is a critical error message which when we enable WP DEBUG says the below – it appears there is an incompatibility between the theme and woocommerce.
Fatal error: Uncaught Error: Call to undefined method WC_Product_Simple::variation_is_visible() in /home/cherryredco/public_html/wp-content/plugins/woocommerce/includes/class-wc-product-variable.php:306 Stack trace: #0 /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/packages/st-woo-swatches/public/partials/class-st-woo-shop.php(58): WC_Product_Variable->get_available_variations() #1 /home/cherryredco/public_html/wp-includes/class-wp-hook.php(288): St_Woo_Shop->loop_swatch(‘normal’) #2 /home/cherryredco/public_html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(”, Array) #3 /home/cherryredco/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #4 /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/packages/st-woo-swatches/public/partials/class-st-woo-shop.php(43): do_action(‘loop_swatch’, ‘normal’) #5 /home/cherryredco/public_html/wp-includes/class-wp-hook.php(288): St_Woo_Shop->{closure}(”) #6 /home/cherryredco/public_html/wp-includes/class-wp-hook.php(312): WP_Hook- in /home/cherryredco/public_html/wp-content/plugins/woocommerce/includes/class-wc-product-variable.php on line 306
Looking at the logs, this error was occurring as of midnight last night, before we even tried updating any plugins and the new theme.
There is also evidence of another error:
2020-01-23T11:59:55+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents_count() on null in /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/models/customizer/functions.php:461
Stack trace:
#0 /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/models/customizer/theme-options/global/callbacks.php(892): etheme_cart_quantity()
#1 /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/models/customizer/templates/header/parts/cart.php(76): header_cart_callback()
#2 /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/models/customizer/templates/header/parts/connect_block.php(94): require(‘/home/cherryred…’)
#3 /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/models/customizer/theme-options/global/callbacks.php(82): require(‘/home/cherryred…’)
#4 /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/models/customizer/theme-options/global/callbacks.php(132): header_content_callback(‘main’)
#5 /home/cherryredco/public_html/wp-cont in /home/cherryredco/public_html/wp-content/plugins/et-core-plugin/app/models/customizer/functions.php on line 461
Please can you help?
Many thanks!
Lauren