• Resolved denozzo

    (@denozzo)


    Hello! I am having some sudden issues with my products that have variations asking for product options to be selected when they are and also the menu button to my store not working. I have attached error logs

    2024-01-16T06:22:22+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents_count() on null in /home2/outlaws7/public_html/wp-content/plugins/woocommerce-cart-tab/includes/cart-tab-templates.php:13 Stack trace: #0 /home2/outlaws7/public_html/wp-includes/class-wp-hook.php(324): woocommerce_cart_tab_button(”) #1 /home2/outlaws7/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #2 /home2/outlaws7/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home2/outlaws7/public_html/wp-content/plugins/woocommerce-cart-tab/includes/cart-tab-templates.php(57): do_action(‘wcct_before_car…’) #4 /home2/outlaws7/public_html/wp-includes/class-wp-hook.php(324): woocommerce_cart_tab(”) #5 /home2/outlaws7/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #6 /home2/outlaws7/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /home2/outlaws7/public_html/wp-includes/general-template.php(3068): do_action(‘wp_footer’) #8 /home2/outlaws7/public_ht in /home2/outlaws7/public_html/wp-content/plugins/woocommerce-cart-tab/includes/cart-tab-templates.php on line 13 2024-01-16T06:22:32+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents_count() on null in /home2/outlaws7/public_html/wp-content/plugins/woocommerce-cart-tab/includes/cart-tab-templates.php:13 Stack trace: #0 /home2/outlaws7/public_html/wp-includes/class-wp-hook.php(324): woocommerce_cart_tab_button(”) #1 /home2/outlaws7/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #2 /home2/outlaws7/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home2/outlaws7/public_html/wp-content/plugins/woocommerce-cart-tab/includes/cart-tab-templates.php(57): do_action(‘wcct_before_car…’) #4 /home2/outlaws7/public_html/wp-includes/class-wp-hook.php(324): woocommerce_cart_tab(”) #5 /home2/outlaws7/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #6 /home2/outlaws7/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /home2/outlaws7/public_html/wp-includes/general-template.php(3068): do_action(‘wp_footer’) #8 /home2/outlaws7/public_ht in /home2/outlaws7/public_html/wp-content/plugins/woocommerce-cart-tab/includes/cart-tab-templates.php on line 13 2024-01-16T06:22:42+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents_count() on null in /home2/outlaws7/public_html/wp-content/plugins/woocommerce-cart-tab/includes/cart-tab-templates.php:13 Stack trace: #0 /home2/outlaws7/public_html/wp-includes/class-wp-hook.php(324): woocommerce_cart_tab_button(”) #1 /home2/outlaws7/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #2 /home2/outlaws7/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home2/outlaws7/public_html/wp-content/plugins/woocommerce-cart-tab/includes/cart-tab-templates.php(57): do_action(‘wcct_before_car…’) #4 /home2/outlaws7/public_html/wp-includes/class-wp-hook.php(324): woocommerce_cart_tab(”) #5 /home2/outlaws7/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #6 /home2/outlaws7/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /home2/outlaws7/public_html/wp-includes/general-template.php(3068): do_action(‘wp_footer’) #8 /home2/outlaws7/public_ht in /home2/outlaws7/public_html/wp-content/plugins/woocommerce-cart-tab/includes/cart-tab-templates.php on line 13 2024-01-16T06:22:49+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents_count() on null in /home2/outlaws7/public_html/wp-content/plugins/woocommerce-cart-tab/includes/cart-tab-templates.php:13 Stack trace: #0 /home2/outlaws7/public_html/wp-includes/class-wp-hook.php(324): woocommerce_cart_tab_button(”) #1 /home2/outlaws7/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #2 /home2/outlaws7/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home2/outlaws7/public_html/wp-content/plugins/woocommerce-cart-tab/includes/cart-tab-templates.php(57): do_action(‘wcct_before_car…’) #4 /home2/outlaws7/public_html/wp-includes/class-wp-hook.php(324): woocommerce_cart_tab(”) #5 /home2/outlaws7/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #6 /home2/outlaws7/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /home2/outlaws7/public_html/wp-includes/general-template.php(3068): do_action(‘wp_footer’) #8 /home2/outlaws7/public_ht in /home2/outlaws7/public_html/wp-content/plugins/woocommerce-cart-tab/includes/cart-tab-templates.php on line 13 2024-01-16T06:23:00+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents_count() on null in /home2/outlaws7/public_html/wp-content/plugins/woocommerce-cart-tab/includes/cart-tab-templates.php:13 Stack trace: #0 /home2/outlaws7/public_html/wp-includes/class-wp-hook.php(324): woocommerce_cart_tab_button(”) #1 /home2/outlaws7/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #2 /home2/outlaws7/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home2/outlaws7/public_html/wp-content/plugins/woocommerce-cart-tab/includes/cart-tab-templates.php(57): do_action(‘wcct_before_car…’) #4 /home2/outlaws7/public_html/wp-includes/class-wp-hook.php(324): woocommerce_cart_tab(”) #5 /home2/outlaws7/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #6 /home2/outlaws7/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /home2/outlaws7/public_html/wp-includes/general-template.php(3068): do_action(‘wp_footer’) #8 /home2/outlaws7/public_ht in /home2/outlaws7/public_html/wp-content/plugins/woocommerce-cart-tab/includes/cart-tab-templates.php on line 13

    • This topic was modified 2 years, 3 months ago by denozzo.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The error logs you’ve shared indicate a recurring critical error related to the WooCommerce Cart Tab plugin on your WordPress site. Specifically, the error “Call to a member function get_cart_contents_count() on null” suggests that the plugin is trying to call a function on a non-existent object, likely because the WooCommerce cart object isn’t initialized or available at the time the plugin expects it to be.

    Make sure everything is up to date.

    Since you’ve identified that the issue persists with only WooCommerce, Woodmart theme, and WP Rocket (and the error specifically mentions the WooCommerce Cart Tab plugin), it’s important to test without WP Rocket as well to rule out caching issues causing the cart object to not initialize properly.

    If comfortable, delve deeper into debugging by checking the plugin’s source code where the error occurs (woocommerce-cart-tab/includes/cart-tab-templates.php on line 13). See if there are conditions where the WooCommerce global object could be null and why.

    Since the issue is directly related to the WooCommerce Cart Tab plugin, consider reaching out to the plugin’s support team with the error logs. They might have encountered this issue before and could provide a patch or workaround.

    Zee

    (@doublezed2)

    Hello denozzo,

    Thank you for contacting WooCommerce Support with your concerns about the unexpected issues with product variations and the store menu button.

    It appears that this might be an error related to the WooCommerce Cart Tab plugin.

    To confirm if this plugin is causing the problem, please try deactivating the WooCommerce Cart Tab plugin and check if the issues with the product variations and menu button are resolved.

    To assist you further, we need to get a clearer picture of your current setup. Could you please provide me with a copy of your site’s System Status Report? You can easily get this report by following these steps:
    1. Go to your WordPress Dashboard.
    2. Navigate to WooCommerce > Status.
    3. Click on ‘Get system report’ and then ‘Copy for support’.

    After copying the report, create a new Gist at https://gist.github.com and paste the copied text into it. Save the Gist and share the link with us here in your reply.

    I am looking forward to your response and getting to the bottom of this issue as quickly as we can. 🙂

    @isodos, I’d like to thank you for the accurate identification of this issue.

    Best regards.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Issue with product variations’ is closed to new replies.