• 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

Viewing 1 replies (of 1 total)
  • Thread Starter essemcreatives

    (@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

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal Error on Home Page’ is closed to new replies.