Call to a member function get_type() in class-genesis-woocoomerce-public.php:696
-
A client is trying to add a Woocommerce block (WooCommerce Blocks by Automattic) to one of his pages, but it returns errors. We get the following errors in our logs:
Call to a member function get_type() on null in /home/customer/public_html/wp-content/plugins/connect-genesis-woocommerce/public/class-genesis-woocoomerce-public.php:696 Stack trace: #0 /home/customer/public_html/wp-includes/class-wp-hook.php(290): GenWoo\Genesis_Woocommerce_Public->dq_woo_archive_custom_cart_button_text_simple('In shoppingbasket') #1 /home/customer/public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters('In shoppingbasket', Array) #2 /home/customer/public_html/wp-content/plugins/woocommerce/includes/class-wc-product-simple.php(62): apply_filters('woocommerce_pro...', 'In shoppingbasket', Object(WC_Product_Simple)) #3 /home/customer/public_html/wp-content/plugins/woo-gutenberg-products-block/src/BlockTypes/AbstractProductGrid.php(473): WC_Product_Simple->add_to_cart_text() #4 /home/customer/public_html/wp-content/plugins/woo-gutenberg-products-block/src/BlockTypes/AbstractProductGrid.php(446): Automattic\WooCommerce\Blocks\BlockTypes\AbstractProductGrid->get_add_to_cart(Object(WC_
Running PHP7.4.4, Woocommerce 4.0.1
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Call to a member function get_type() in class-genesis-woocoomerce-public.php:696’ is closed to new replies.