• At times, when customers add items to the cart the server failes in doing so and throws the follow errors in the logs.

    2019-03-27T07:49:25+00:00 CRITICAL Uncaught Error: Call to a member function get_cart_contents_count() on null in /customers/7/1/0/dampcig.dk/httpd.www/wp-content/themes/ecommerce-gem/includes/hooks.php:176
    Stack trace:
    #0 /customers/7/1/0/dampcig.dk/httpd.www/wp-includes/class-wp-hook.php(286): ecommerce_gem_top_header_action(”)
    #1 /customers/7/1/0/dampcig.dk/httpd.www/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #2 /customers/7/1/0/dampcig.dk/httpd.www/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #3 /customers/7/1/0/dampcig.dk/httpd.www/wp-content/themes/ecommerce-gem/header.php(42): do_action(‘ecommerce_gem_t…’)
    #4 /customers/7/1/0/dampcig.dk/httpd.www/wp-includes/template.php(704): require_once(‘/customers/7/1/…’)
    #5 /customers/7/1/0/dampcig.dk/httpd.www/wp-includes/template.php(653): load_template(‘/customers/7/1/…’, true)
    #6 /customers/7/1/0/dampcig.dk/httpd.www/wp-includes/general-template.php(41): locate_template(Array, true)
    #7 /customers/7/1/0/dampcig.dk/httpd.www/wp-content/themes/ecommerce- i /customers/7/1/0/dampcig.dk/httpd.www/wp-content/themes/ecommerce-gem/includes/hooks.php p? linje 176

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lennilg

    (@lennilg)

    Hi, first I would like you to try and reproduce the error.

    Make sure, that you are currently NOT logged into a account.

    Step 1) Add items to the basket.
    Step 2) Click on Log in / Register and create a new account
    Step 3) The items added to the basket remains so

    But errors are thrown in the debug.log in WP_Debug is enabled.

    get_cart is called incorrectly.
    the_widget is called incorrectly.

    Best Regards,
    Lenni

    Hello Lennilg,

    Sorry for the late response.

    Kindly make sure your website is equipped with below plugins.

    1.WooCommerce
    2.One Click Demo Import
    3.MailChimp for WordPress
    4.Contact Form 7
    5.YITH WooCommerce Wishlist
    6.Video Tab For WooCommerce

    Please have a look and install the required plugin/s in case any plugin is missing.

    In case the error persists after that then please share your website URL and admin credentials on [email protected] so that we can provide you an effective solution.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CRITICAL Uncaught Error: Call to a member function get_cart_contents_count()’ is closed to new replies.