• Hi,

    Every day, the website will email me this once, the code works and I can’t figure out what the “trigger” is, the line it complains about looks fine to me, I can’t understand what it’s trying to say!

    Any help would be appreciated:

    Error Details
    =============
    An error of type E_ERROR was caused in line 48 of the file /wp-content/plugins/side-cart-woocommerce/public/class-xoo-wsc-cart-data.php. Error message: Uncaught Error: Call to a member function get_cart() on null in /wp-content/plugins/side-cart-woocommerce/public/class-xoo-wsc-cart-data.php:48
    Stack trace:
    #0 /wp-includes/class-wp-hook.php(286): xoo_wsc_Cart_Data->get_cart_content('')
    #1 /wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #2 /wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #3 /wp-content/plugins/side-cart-woocommerce/public/partials/xoo-wsc-markup.php(68): do_action('xoo_wsc_cart_co...')
    #4 /wp-content/plugins/side-cart-woocommerce/public/class-xoo-wsc-cart-data.php(37): require_once('/var/www/vhosts...')
    #5 /wp-includes/class-wp-hook.php(286): xoo_wsc_Cart_Data->get_cart_markup('')
    

    Kind Regards

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘E_Error whenever WC()->cart->get_cart() is called’ is closed to new replies.