WPIntell

Source evidence

Fatal Error on Home Page

Custom Add to Cart labels for WooCommerce · support · 2019-07-02T06:15:00+00:00

complaintsentiment
highseverity
0.97relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

3 / 28 rows with source links

10.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

25 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
essemcreatives unresolved
Hi, I have been running this plugin with no problem for the past couple of years. However, recently, when this plugin is active, my homepage breaks & I get a fatal error message on my site homepage. Rest of the pages work, and the plugin does what it’s supposed to on the catalog page. When I deactivate the plugin, the homepage loads alright. Please help!!! Thanks, Sneha This topic was modified 6 years, 11 months ago by essemcreatives . Hi, I’ve been running this plugin for the past 2 years with no problem. However, recently, the plugin is returning a fatal error on my website homepage (copy pasted below). It’s working alright on the rest of the pages. Homepage loads alright after deactivating the plugin. Please help!! Fatal error: Uncaught Error: Call to a member function get_type() on null in /home/essemcreatives/public_html/wp-content/plugins/wc-custom-add-to-cart-labels/wc-custom-add-to-cart-labels.php:172 Stack trace: #0 /home/essemcreatives/public_html/wp-includes/class-wp-hook.php(288): custom_woocommerce_product_add_to_cart_text(‘Select options’) #1 /home/essemcreatives/public_html/wp-includes/plugin.php(208): WP_Hook->apply_filters(‘Select options’, Array) #2 /home/essemcreatives/public_html/wp-content/plugins/woocommerce/includes/class-wc-product-variable.php(60): apply_filters(‘woocommerce_pro…’, ‘Select options’, Object(WC_Product_Variable)) #3 /home/essemcreatives/public_html/wp-content/plugins/woo-gutenberg-products-block/assets/php/class-wgpb-block-grid-base.php(387): WC_Product_Variable->add_to_cart_text() #4 /home/essemcreatives/public_html/wp-content/plugins/woo-gutenberg-products-block/assets/php/class-wgpb-block-grid-base.php(360): WGPB_Block_Grid_Base->get_add_to_cart(Object(WC_Product_Variable)) #5 /home/essemcre in /home/essemcreatives/public_html/wp-content/plugins/wc-custom-add-to-cart-labels/wc-custom-add-to-cart-labels.php on line 172

Comments

1 shown
essemcreatives 2019-07-02T06:17:00+00:00

Hi, I’ve been running this plugin for the past 2 years with no problem. However, recently, the plugin is returning a fatal error on my website homepage (copy pasted below). It’s working alright on the rest of the pages. Homepage loads alright after deactivating the plugin. Please help!! Fatal error: Uncaught Error: Call to a member function get_type() on null in /home/essemcreatives/public_html/wp-content/plugins/wc-custom-add-to-cart-labels/wc-custom-add-to-cart-labels.php:172 Stack trace: #0 /home/essemcreatives/public_html/wp-includes/class-wp-hook.php(288): custom_woocommerce_product_add_to_cart_text(‘Select options’) #1 /home/essemcreatives/public_html/wp-includes/plugin.php(208): WP_Hook->apply_filters(‘Select options’, Array) #2 /home/essemcreatives/public_html/wp-content/plugins/woocommerce/includes/class-wc-product-variable.php(60): apply_filters(‘woocommerce_pro…’, ‘Select options’, Object(WC_Product_Variable)) #3 /home/essemcreatives/public_html/wp-content/plugins/woo-gutenberg-products-block/assets/php/class-wgpb-block-grid-base.php(387): WC_Product_Variable->add_to_cart_text() #4 /home/essemcreatives/public_html/wp-content/plugins/woo-gutenberg-products-block/assets/php/class-wgpb-block-grid-base.php(360): WGPB_Block_Grid_Base->get_add_to_cart(Object(WC_Product_Variable)) #5 /home/essemcre in /home/essemcreatives/public_html/wp-content/plugins/wc-custom-add-to-cart-labels/wc-custom-add-to-cart-labels.php on line 172