• After the latest WooCommerce update, I get the following error at the cart when using a subscription payment

    SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

    Looking at the WooCommerce Logs, I see the following output. I suspect a problem with this plugin and the latest WooCommerce release.

    2019-03-20T10:05:43+00:00 CRITICAL Uncaught Error: Call to a member function get_address() on boolean in /var/www/html/wp-content/plugins/yith-woocommerce-subscription/includes/class.ywsbs-susbscription.php:456
    Stack trace:
    #0 /var/www/html/wp-content/plugins/yith-woocommerce-subscription/includes/class.yith-wc-subscription-order.php(860): YWSBS_Subscription->get_address_fields(‘billing’)
    #1 /var/www/html/wp-content/plugins/yith-woocommerce-subscription/includes/class.yith-wc-subscription-cron.php(113): YWSBS_Subscription_Order->renew_order(‘1104’)
    #2 /var/www/html/wp-includes/class-wp-hook.php(286): YWSBS_Subscription_Cron->renew_orders()
    #3 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #4 /var/www/html/wp-includes/plugin.php(515): WP_Hook->do_action(Array)
    #5 /var/www/html/wp-cron.php(126): do_action_ref_array(‘ywsbs_renew_ord…’, Array)
    #6 {main}
    thrown in /var/www/html/wp-content/plugins/yith-woocommerce-subscription/includes/class.ywsbs-susbscription.php on line 456

    2019-03-20T11:15:36+00:00 CRITICAL Uncaught Error: Call to a member function get_tax_class() on null in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:230
    Stack trace:
    #0 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(637): WC_Cart_Totals->get_items_from_cart()
    #1 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(140): WC_Cart_Totals->calculate_item_totals()
    #2 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(131): WC_Cart_Totals->calculate()
    #3 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1210): WC_Cart_Totals->__construct(Object(WC_Cart))
    #4 /var/www/html/wp-includes/class-wp-hook.php(284): WC_Cart->calculate_totals()
    #5 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #6 /var/www/html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #7 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1101): do_action(‘woocommerce_add…’, ‘0ab7f in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 230

    2019-03-20T11:16:20+00:00 CRITICAL Uncaught Error: Call to a member function get_tax_class() on null in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:230
    Stack trace:
    #0 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(637): WC_Cart_Totals->get_items_from_cart()
    #1 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(140): WC_Cart_Totals->calculate_item_totals()
    #2 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(131): WC_Cart_Totals->calculate()
    #3 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1210): WC_Cart_Totals->__construct(Object(WC_Cart))
    #4 /var/www/html/wp-includes/class-wp-hook.php(284): WC_Cart->calculate_totals()
    #5 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #6 /var/www/html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #7 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1101): do_action(‘woocommerce_add…’, ‘d43c9 in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 230

    2019-03-20T11:18:33+00:00 CRITICAL Uncaught Error: Call to a member function get_tax_class() on null in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:230
    Stack trace:
    #0 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(637): WC_Cart_Totals->get_items_from_cart()
    #1 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(140): WC_Cart_Totals->calculate_item_totals()
    #2 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(131): WC_Cart_Totals->calculate()
    #3 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1210): WC_Cart_Totals->__construct(Object(WC_Cart))
    #4 /var/www/html/wp-includes/class-wp-hook.php(284): WC_Cart->calculate_totals()
    #5 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #6 /var/www/html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #7 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1101): do_action(‘woocommerce_add…’, ‘3840b in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 230

    2019-03-20T11:25:01+00:00 CRITICAL Uncaught Error: Call to a member function get_tax_class() on null in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:230
    Stack trace:
    #0 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(637): WC_Cart_Totals->get_items_from_cart()
    #1 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(140): WC_Cart_Totals->calculate_item_totals()
    #2 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(131): WC_Cart_Totals->calculate()
    #3 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1210): WC_Cart_Totals->__construct(Object(WC_Cart))
    #4 /var/www/html/wp-includes/class-wp-hook.php(284): WC_Cart->calculate_totals()
    #5 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #6 /var/www/html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #7 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1101): do_action(‘woocommerce_add…’, ‘2acaa in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 230

    2019-03-20T11:25:07+00:00 CRITICAL Uncaught Error: Call to a member function get_tax_class() on null in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:230
    Stack trace:
    #0 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(637): WC_Cart_Totals->get_items_from_cart()
    #1 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(140): WC_Cart_Totals->calculate_item_totals()
    #2 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(131): WC_Cart_Totals->calculate()
    #3 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1210): WC_Cart_Totals->__construct(Object(WC_Cart))
    #4 /var/www/html/wp-includes/class-wp-hook.php(284): WC_Cart->calculate_totals()
    #5 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #6 /var/www/html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #7 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1101): do_action(‘woocommerce_add…’, ‘6e200 in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 230

    2019-03-20T11:47:15+00:00 CRITICAL Uncaught Error: Call to a member function get_tax_class() on null in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:230
    Stack trace:
    #0 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(637): WC_Cart_Totals->get_items_from_cart()
    #1 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(140): WC_Cart_Totals->calculate_item_totals()
    #2 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(131): WC_Cart_Totals->calculate()
    #3 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1210): WC_Cart_Totals->__construct(Object(WC_Cart))
    #4 /var/www/html/wp-includes/class-wp-hook.php(284): WC_Cart->calculate_totals()
    #5 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #6 /var/www/html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #7 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1101): do_action(‘woocommerce_add…’, ‘da480 in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 230

    2019-03-20T11:56:41+00:00 CRITICAL Uncaught Error: Call to a member function get_tax_class() on null in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:230
    Stack trace:
    #0 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(637): WC_Cart_Totals->get_items_from_cart()
    #1 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(140): WC_Cart_Totals->calculate_item_totals()
    #2 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(131): WC_Cart_Totals->calculate()
    #3 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1210): WC_Cart_Totals->__construct(Object(WC_Cart))
    #4 /var/www/html/wp-includes/class-wp-hook.php(284): WC_Cart->calculate_totals()
    #5 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #6 /var/www/html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #7 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1101): do_action(‘woocommerce_add…’, ‘4120f in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 230

    2019-03-20T11:57:16+00:00 CRITICAL Uncaught Error: Call to a member function get_tax_class() on null in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:230
    Stack trace:
    #0 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(637): WC_Cart_Totals->get_items_from_cart()
    #1 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(140): WC_Cart_Totals->calculate_item_totals()
    #2 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(131): WC_Cart_Totals->calculate()
    #3 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1210): WC_Cart_Totals->__construct(Object(WC_Cart))
    #4 /var/www/html/wp-includes/class-wp-hook.php(284): WC_Cart->calculate_totals()
    #5 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #6 /var/www/html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #7 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1101): do_action(‘woocommerce_add…’, ‘cc041 in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 230

    2019-03-20T11:58:01+00:00 CRITICAL Uncaught Error: Call to a member function get_tax_class() on null in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:230
    Stack trace:
    #0 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(637): WC_Cart_Totals->get_items_from_cart()
    #1 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(140): WC_Cart_Totals->calculate_item_totals()
    #2 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(131): WC_Cart_Totals->calculate()
    #3 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1210): WC_Cart_Totals->__construct(Object(WC_Cart))
    #4 /var/www/html/wp-includes/class-wp-hook.php(284): WC_Cart->calculate_totals()
    #5 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #6 /var/www/html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #7 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1101): do_action(‘woocommerce_add…’, ’51dea in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 230

    2019-03-20T11:58:59+00:00 CRITICAL Uncaught Error: Call to a member function get_tax_class() on null in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:230
    Stack trace:
    #0 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(637): WC_Cart_Totals->get_items_from_cart()
    #1 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(140): WC_Cart_Totals->calculate_item_totals()
    #2 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(131): WC_Cart_Totals->calculate()
    #3 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1210): WC_Cart_Totals->__construct(Object(WC_Cart))
    #4 /var/www/html/wp-includes/class-wp-hook.php(284): WC_Cart->calculate_totals()
    #5 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #6 /var/www/html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #7 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1101): do_action(‘woocommerce_add…’, ‘44903 in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 230

    2019-03-20T12:00:23+00:00 CRITICAL Uncaught Error: Call to a member function get_tax_class() on null in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:230
    Stack trace:
    #0 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(637): WC_Cart_Totals->get_items_from_cart()
    #1 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(140): WC_Cart_Totals->calculate_item_totals()
    #2 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(131): WC_Cart_Totals->calculate()
    #3 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1210): WC_Cart_Totals->__construct(Object(WC_Cart))
    #4 /var/www/html/wp-includes/class-wp-hook.php(284): WC_Cart->calculate_totals()
    #5 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #6 /var/www/html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #7 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1101): do_action(‘woocommerce_add…’, ‘3d96a in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 230

    2019-03-20T12:00:36+00:00 CRITICAL Uncaught Error: Call to a member function get_tax_class() on null in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:230
    Stack trace:
    #0 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(637): WC_Cart_Totals->get_items_from_cart()
    #1 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(140): WC_Cart_Totals->calculate_item_totals()
    #2 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(131): WC_Cart_Totals->calculate()
    #3 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1210): WC_Cart_Totals->__construct(Object(WC_Cart))
    #4 /var/www/html/wp-includes/class-wp-hook.php(284): WC_Cart->calculate_totals()
    #5 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #6 /var/www/html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #7 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1101): do_action(‘woocommerce_add…’, ’56e6f in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 230

    2019-03-20T12:00:55+00:00 CRITICAL Uncaught Error: Call to a member function get_tax_class() on null in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:230
    Stack trace:
    #0 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(637): WC_Cart_Totals->get_items_from_cart()
    #1 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(140): WC_Cart_Totals->calculate_item_totals()
    #2 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(131): WC_Cart_Totals->calculate()
    #3 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1210): WC_Cart_Totals->__construct(Object(WC_Cart))
    #4 /var/www/html/wp-includes/class-wp-hook.php(284): WC_Cart->calculate_totals()
    #5 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #6 /var/www/html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #7 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1101): do_action(‘woocommerce_add…’, ‘eec51 in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 230

    2019-03-20T12:02:04+00:00 CRITICAL Uncaught Error: Call to a member function get_tax_class() on null in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:230
    Stack trace:
    #0 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(637): WC_Cart_Totals->get_items_from_cart()
    #1 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(140): WC_Cart_Totals->calculate_item_totals()
    #2 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(131): WC_Cart_Totals->calculate()
    #3 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1210): WC_Cart_Totals->__construct(Object(WC_Cart))
    #4 /var/www/html/wp-includes/class-wp-hook.php(284): WC_Cart->calculate_totals()
    #5 /var/www/html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #6 /var/www/html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #7 /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1101): do_action(‘woocommerce_add…’, ‘f7599 in /var/www/html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 230

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

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error after latest WooCommerce update’ is closed to new replies.