Replies: 1
We are getting the following error on some pages:
Fatal error: Uncaught Error: Class 'WPSEO_Frontend' not found in
wp-content/plugins/wpseo-woocommerce/classes/woocommerce-schema.php:353 Stack trace: #0
wp-content/plugins/wpseo-woocommerce/classes/woocommerce-schema.php(114): WPSEO_WooCommerce_Schema->get_canonical() #1
wp-includes/class-wp-hook.php(303): WPSEO_WooCommerce_Schema->change_product(Array, Object(WC_Product_Variable)) #2
wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array) #3
wp-content/plugins/woocommerce/includes/class-wc-structured-data.php(328): apply_filters('woocommerce_str...', Array, Object(WC_Product_Variable)) #4
wp-includes/class-wp-hook.php(303): WC_Structured_Data->generate_product_data(Object(WC_Product_Variable)) #5
/home/customer/www/clariss in
wp-content/plugins/wpseo-woocommerce/classes/woocommerce-schema.php on line 353
I found that the get_canonical() function calls WPSEO_Frontend which I believe has been depricated. I’m using Version: 12.6.1