Fatal error with WooCommerce Mix and Match Products
-
I am the author of Woocommerce Mix and Match Products and had a mutual customer report this to our support team.
An error of type E_ERROR was caused in line 9275 of the file /public_html/wp-content/plugins/royal-elementor-addons/modules/woo-grid/widgets/wpr-woo-grid.php. Error message: Uncaught Error: Call to undefined method WC_Product_Mix_and_Match::get_product_url() in /public_html/wp-content/plugins/royal-elementor-addons/modules/woo-grid/widgets/wpr-woo-grid.php:9275
Stack trace:
#0 /public_html/wp-content/plugins/royal-elementor-addons/modules/woo-grid/widgets/wpr-woo-grid.php(9722): WprAddons\Modules\WooGrid\Widgets\Wpr_Woo_Grid->render_product_add_to_cart()WooCommerce only supports
get_product_url
on External products, see source. It is probably worth hardening this bit of your code to test ifget_product_url
is callable… here’s an example. That should prevent it from running on amix-and-match
type product (or any other unsupported product type).
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.