• Resolved James Maiden

    (@reallygreenjames)


    Hi there,
    I have customised the display of the product variations so they open in a pop-up when clicking a button (see website link). This has always worked, but after an update to 6.8, a critical error is now thrown when clicking the Add to Cart button.

    My customisation:

    // Pop Up Add to Cart stuff
    add_action( 'woocommerce_before_add_to_cart_form', 'go_wrap_variation_form_pop', 4 );
    
    function go_wrap_variation_form_pop() {
      global $product;
      if ( $product->is_type( 'variable' ) ) {
        if ($product->is_in_stock( ) ){
          echo '<div class="custom-add-to-cart-overlay"><span class="close-overlay">×</span>';
        }
      }
    }
    add_action( 'woocommerce_after_add_to_cart_form', 'go_variation_form_pop', 4 );
    
    function go_variation_form_pop() {
      global $product;
      if ( $product->is_type( 'variable' ) ) {
        if ($product->is_in_stock( ) ){
          echo '</div><p class="add-pop darkbg box-link">+ Choose Options and Order</p>';
        }
      }
    }
    /////////////////////////////////////////

    From the log:

    PHP Fatal error:  Uncaught TypeError: Argument 1 passed to wc_add_number_precision() must be of the type float, null given, called in /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1946 and defined in /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/wc-core-functions.php:1918
    Stack trace:
    #0 /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/wc-core-functions.php(1946): wc_add_number_precision(NULL, true)
    #1 /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(344): wc_add_number_precision_deep(NULL)
    #2 /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(850): WC_Cart_Totals->get_shipping_from_cart()
    #3 /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(144): WC_Cart_Totals->calculate_shipping_totals()
    #4 /Users/Ja in /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1918

    I have done all the usual troubleshooting steps to eliminate a plugin conflict.

    The variations/add to cart process works fine without my customisation.

    Has something changed that I need to know to update my function?

    Thanks,
    James

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @reallygreenjames,

    Thanks for reaching out and also troubleshooting for any plugin conflicts!
    I would just like to confirm that you switched to StoreFront theme and disabled all plugins except WooCommerce as part of the plugin conflict test.

    To get a better understanding, please provide us with your System Status. You can find it via WooCommerce > Status. Select ‘Get system report’ and then ‘Copy for support’ and paste your response here.
    Are there any other errors in the log? If yes, paste them here as well.

    I also tried to reproduce the error by trying to add a variation to the cart via the custom popup on your website and was able to successfully add the product to cart.
    Could you please walk me through the exact steps you performed that led you to this error so that I can try to replicate it?

    Thank you!

    Thread Starter James Maiden

    (@reallygreenjames)

    Thank you very much for looking into this.

    I confirm that Add to Cart works fine with Storefront theme. It’s just my customisation that is a problem.

    On the live site I rolled by WooComm to 6.1 so our customers don’t have a problem, but you can recreate the problem on the staging site:

    https://dev.northstarroast.com/product/ethiopia/

    Select all 3 choices, then click Add to Cart.

    I think this is the full error report for the critical error:

    [16-Aug-2022 10:06:25 UTC] PHP Stack trace:
    [16-Aug-2022 10:06:25 UTC] PHP   1. {main}() /Users/James/Local Sites/northstar/app/public/index.php:0
    [16-Aug-2022 10:06:25 UTC] PHP   2. require() /Users/James/Local Sites/northstar/app/public/index.php:17
    [16-Aug-2022 10:06:25 UTC] PHP   3. require_once() /Users/James/Local Sites/northstar/app/public/wp-blog-header.php:13
    [16-Aug-2022 10:06:25 UTC] PHP   4. require_once() /Users/James/Local Sites/northstar/app/public/wp-load.php:50
    [16-Aug-2022 10:06:25 UTC] PHP   5. require_once() /Users/James/Local Sites/northstar/app/public/wp-config.php:101
    [16-Aug-2022 10:06:25 UTC] PHP   6. do_action() /Users/James/Local Sites/northstar/app/public/wp-settings.php:620
    [16-Aug-2022 10:06:25 UTC] PHP   7. WP_Hook->do_action() /Users/James/Local Sites/northstar/app/public/wp-includes/plugin.php:476
    [16-Aug-2022 10:06:25 UTC] PHP   8. WP_Hook->apply_filters() /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-hook.php:331
    [16-Aug-2022 10:06:25 UTC] PHP   9. WC_Form_Handler::add_to_cart_action() /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-hook.php:307
    [16-Aug-2022 10:06:25 UTC] PHP  10. WC_Form_Handler::add_to_cart_handler_variable() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:790
    [16-Aug-2022 10:06:25 UTC] PHP  11. WC_Cart->add_to_cart() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:918
    [16-Aug-2022 10:06:25 UTC] PHP  12. do_action() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart.php:1276
    [16-Aug-2022 10:06:25 UTC] PHP  13. WP_Hook->do_action() /Users/James/Local Sites/northstar/app/public/wp-includes/plugin.php:476
    [16-Aug-2022 10:06:25 UTC] PHP  14. WP_Hook->apply_filters() /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-hook.php:331
    [16-Aug-2022 10:06:25 UTC] PHP  15. WC_Cart->calculate_totals() /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-hook.php:305
    [16-Aug-2022 10:06:25 UTC] PHP  16. WC_Cart_Totals->__construct() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart.php:1398
    [16-Aug-2022 10:06:25 UTC] PHP  17. WC_Cart_Totals->calculate() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:134
    [16-Aug-2022 10:06:25 UTC] PHP  18. WC_Cart_Totals->calculate_shipping_totals() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:144
    [16-Aug-2022 10:06:25 UTC] PHP  19. WC_Cart_Totals->get_shipping_from_cart() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:850
    [16-Aug-2022 10:06:25 UTC] PHP  20. WC_Cart->calculate_shipping() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:339
    [16-Aug-2022 10:06:25 UTC] PHP  21. WC_Cart->get_chosen_shipping_methods() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart.php:1420
    [16-Aug-2022 10:06:25 UTC] PHP Notice:  Trying to access array offset on value of type null in /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-list-util.php on line 169
    [16-Aug-2022 10:06:25 UTC] PHP Stack trace:
    [16-Aug-2022 10:06:25 UTC] PHP   1. {main}() /Users/James/Local Sites/northstar/app/public/index.php:0
    [16-Aug-2022 10:06:25 UTC] PHP   2. require() /Users/James/Local Sites/northstar/app/public/index.php:17
    [16-Aug-2022 10:06:25 UTC] PHP   3. require_once() /Users/James/Local Sites/northstar/app/public/wp-blog-header.php:13
    [16-Aug-2022 10:06:25 UTC] PHP   4. require_once() /Users/James/Local Sites/northstar/app/public/wp-load.php:50
    [16-Aug-2022 10:06:25 UTC] PHP   5. require_once() /Users/James/Local Sites/northstar/app/public/wp-config.php:101
    [16-Aug-2022 10:06:25 UTC] PHP   6. do_action() /Users/James/Local Sites/northstar/app/public/wp-settings.php:620
    [16-Aug-2022 10:06:25 UTC] PHP   7. WP_Hook->do_action() /Users/James/Local Sites/northstar/app/public/wp-includes/plugin.php:476
    [16-Aug-2022 10:06:25 UTC] PHP   8. WP_Hook->apply_filters() /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-hook.php:331
    [16-Aug-2022 10:06:25 UTC] PHP   9. WC_Form_Handler::add_to_cart_action() /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-hook.php:307
    [16-Aug-2022 10:06:25 UTC] PHP  10. WC_Form_Handler::add_to_cart_handler_variable() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:790
    [16-Aug-2022 10:06:25 UTC] PHP  11. WC_Cart->add_to_cart() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:918
    [16-Aug-2022 10:06:25 UTC] PHP  12. do_action() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart.php:1276
    [16-Aug-2022 10:06:25 UTC] PHP  13. WP_Hook->do_action() /Users/James/Local Sites/northstar/app/public/wp-includes/plugin.php:476
    [16-Aug-2022 10:06:25 UTC] PHP  14. WP_Hook->apply_filters() /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-hook.php:331
    [16-Aug-2022 10:06:25 UTC] PHP  15. WC_Cart->calculate_totals() /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-hook.php:305
    [16-Aug-2022 10:06:25 UTC] PHP  16. WC_Cart_Totals->__construct() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart.php:1398
    [16-Aug-2022 10:06:25 UTC] PHP  17. WC_Cart_Totals->calculate() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:134
    [16-Aug-2022 10:06:25 UTC] PHP  18. WC_Cart_Totals->calculate_shipping_totals() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:144
    [16-Aug-2022 10:06:25 UTC] PHP  19. WC_Cart_Totals->get_shipping_from_cart() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:850
    [16-Aug-2022 10:06:25 UTC] PHP  20. WC_Cart->calculate_shipping() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:339
    [16-Aug-2022 10:06:25 UTC] PHP  21. wp_list_pluck() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart.php:1422
    [16-Aug-2022 10:06:25 UTC] PHP  22. WP_List_Util->pluck() /Users/James/Local Sites/northstar/app/public/wp-includes/functions.php:5185
    [16-Aug-2022 10:06:25 UTC] PHP Warning:  Invalid argument supplied for foreach() in /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart.php on line 1425
    [16-Aug-2022 10:06:25 UTC] PHP Stack trace:
    [16-Aug-2022 10:06:25 UTC] PHP   1. {main}() /Users/James/Local Sites/northstar/app/public/index.php:0
    [16-Aug-2022 10:06:25 UTC] PHP   2. require() /Users/James/Local Sites/northstar/app/public/index.php:17
    [16-Aug-2022 10:06:25 UTC] PHP   3. require_once() /Users/James/Local Sites/northstar/app/public/wp-blog-header.php:13
    [16-Aug-2022 10:06:25 UTC] PHP   4. require_once() /Users/James/Local Sites/northstar/app/public/wp-load.php:50
    [16-Aug-2022 10:06:25 UTC] PHP   5. require_once() /Users/James/Local Sites/northstar/app/public/wp-config.php:101
    [16-Aug-2022 10:06:25 UTC] PHP   6. do_action() /Users/James/Local Sites/northstar/app/public/wp-settings.php:620
    [16-Aug-2022 10:06:25 UTC] PHP   7. WP_Hook->do_action() /Users/James/Local Sites/northstar/app/public/wp-includes/plugin.php:476
    [16-Aug-2022 10:06:25 UTC] PHP   8. WP_Hook->apply_filters() /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-hook.php:331
    [16-Aug-2022 10:06:25 UTC] PHP   9. WC_Form_Handler::add_to_cart_action() /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-hook.php:307
    [16-Aug-2022 10:06:25 UTC] PHP  10. WC_Form_Handler::add_to_cart_handler_variable() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:790
    [16-Aug-2022 10:06:25 UTC] PHP  11. WC_Cart->add_to_cart() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:918
    [16-Aug-2022 10:06:25 UTC] PHP  12. do_action() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart.php:1276
    [16-Aug-2022 10:06:25 UTC] PHP  13. WP_Hook->do_action() /Users/James/Local Sites/northstar/app/public/wp-includes/plugin.php:476
    [16-Aug-2022 10:06:25 UTC] PHP  14. WP_Hook->apply_filters() /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-hook.php:331
    [16-Aug-2022 10:06:25 UTC] PHP  15. WC_Cart->calculate_totals() /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-hook.php:305
    [16-Aug-2022 10:06:25 UTC] PHP  16. WC_Cart_Totals->__construct() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart.php:1398
    [16-Aug-2022 10:06:25 UTC] PHP  17. WC_Cart_Totals->calculate() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:134
    [16-Aug-2022 10:06:25 UTC] PHP  18. WC_Cart_Totals->calculate_shipping_totals() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:144
    [16-Aug-2022 10:06:25 UTC] PHP  19. WC_Cart_Totals->get_shipping_from_cart() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:850
    [16-Aug-2022 10:06:25 UTC] PHP  20. WC_Cart->calculate_shipping() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:339
    [16-Aug-2022 10:06:25 UTC] PHP Notice:  Trying to access array offset on value of type null in /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-list-util.php on line 169
    [16-Aug-2022 10:06:25 UTC] PHP Stack trace:
    [16-Aug-2022 10:06:25 UTC] PHP   1. {main}() /Users/James/Local Sites/northstar/app/public/index.php:0
    [16-Aug-2022 10:06:25 UTC] PHP   2. require() /Users/James/Local Sites/northstar/app/public/index.php:17
    [16-Aug-2022 10:06:25 UTC] PHP   3. require_once() /Users/James/Local Sites/northstar/app/public/wp-blog-header.php:13
    [16-Aug-2022 10:06:25 UTC] PHP   4. require_once() /Users/James/Local Sites/northstar/app/public/wp-load.php:50
    [16-Aug-2022 10:06:25 UTC] PHP   5. require_once() /Users/James/Local Sites/northstar/app/public/wp-config.php:101
    [16-Aug-2022 10:06:25 UTC] PHP   6. do_action() /Users/James/Local Sites/northstar/app/public/wp-settings.php:620
    [16-Aug-2022 10:06:25 UTC] PHP   7. WP_Hook->do_action() /Users/James/Local Sites/northstar/app/public/wp-includes/plugin.php:476
    [16-Aug-2022 10:06:25 UTC] PHP   8. WP_Hook->apply_filters() /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-hook.php:331
    [16-Aug-2022 10:06:25 UTC] PHP   9. WC_Form_Handler::add_to_cart_action() /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-hook.php:307
    [16-Aug-2022 10:06:25 UTC] PHP  10. WC_Form_Handler::add_to_cart_handler_variable() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:790
    [16-Aug-2022 10:06:25 UTC] PHP  11. WC_Cart->add_to_cart() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:918
    [16-Aug-2022 10:06:25 UTC] PHP  12. do_action() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart.php:1276
    [16-Aug-2022 10:06:25 UTC] PHP  13. WP_Hook->do_action() /Users/James/Local Sites/northstar/app/public/wp-includes/plugin.php:476
    [16-Aug-2022 10:06:25 UTC] PHP  14. WP_Hook->apply_filters() /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-hook.php:331
    [16-Aug-2022 10:06:25 UTC] PHP  15. WC_Cart->calculate_totals() /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-hook.php:305
    [16-Aug-2022 10:06:25 UTC] PHP  16. WC_Cart_Totals->__construct() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart.php:1398
    [16-Aug-2022 10:06:25 UTC] PHP  17. WC_Cart_Totals->calculate() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:134
    [16-Aug-2022 10:06:25 UTC] PHP  18. WC_Cart_Totals->calculate_shipping_totals() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:144
    [16-Aug-2022 10:06:25 UTC] PHP  19. WC_Cart_Totals->get_shipping_from_cart() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:850
    [16-Aug-2022 10:06:25 UTC] PHP  20. WC_Cart->calculate_shipping() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:339
    [16-Aug-2022 10:06:25 UTC] PHP  21. wp_list_pluck() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart.php:1433
    [16-Aug-2022 10:06:25 UTC] PHP  22. WP_List_Util->pluck() /Users/James/Local Sites/northstar/app/public/wp-includes/functions.php:5185
    [16-Aug-2022 10:06:25 UTC] PHP Notice:  Trying to get property 'cost' of non-object in /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 344
    [16-Aug-2022 10:06:25 UTC] PHP Stack trace:
    [16-Aug-2022 10:06:25 UTC] PHP   1. {main}() /Users/James/Local Sites/northstar/app/public/index.php:0
    [16-Aug-2022 10:06:25 UTC] PHP   2. require() /Users/James/Local Sites/northstar/app/public/index.php:17
    [16-Aug-2022 10:06:25 UTC] PHP   3. require_once() /Users/James/Local Sites/northstar/app/public/wp-blog-header.php:13
    [16-Aug-2022 10:06:25 UTC] PHP   4. require_once() /Users/James/Local Sites/northstar/app/public/wp-load.php:50
    [16-Aug-2022 10:06:25 UTC] PHP   5. require_once() /Users/James/Local Sites/northstar/app/public/wp-config.php:101
    [16-Aug-2022 10:06:25 UTC] PHP   6. do_action() /Users/James/Local Sites/northstar/app/public/wp-settings.php:620
    [16-Aug-2022 10:06:25 UTC] PHP   7. WP_Hook->do_action() /Users/James/Local Sites/northstar/app/public/wp-includes/plugin.php:476
    [16-Aug-2022 10:06:25 UTC] PHP   8. WP_Hook->apply_filters() /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-hook.php:331
    [16-Aug-2022 10:06:25 UTC] PHP   9. WC_Form_Handler::add_to_cart_action() /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-hook.php:307
    [16-Aug-2022 10:06:25 UTC] PHP  10. WC_Form_Handler::add_to_cart_handler_variable() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:790
    [16-Aug-2022 10:06:25 UTC] PHP  11. WC_Cart->add_to_cart() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:918
    [16-Aug-2022 10:06:25 UTC] PHP  12. do_action() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart.php:1276
    [16-Aug-2022 10:06:25 UTC] PHP  13. WP_Hook->do_action() /Users/James/Local Sites/northstar/app/public/wp-includes/plugin.php:476
    [16-Aug-2022 10:06:25 UTC] PHP  14. WP_Hook->apply_filters() /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-hook.php:331
    [16-Aug-2022 10:06:25 UTC] PHP  15. WC_Cart->calculate_totals() /Users/James/Local Sites/northstar/app/public/wp-includes/class-wp-hook.php:305
    [16-Aug-2022 10:06:25 UTC] PHP  16. WC_Cart_Totals->__construct() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart.php:1398
    [16-Aug-2022 10:06:25 UTC] PHP  17. WC_Cart_Totals->calculate() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:134
    [16-Aug-2022 10:06:25 UTC] PHP  18. WC_Cart_Totals->calculate_shipping_totals() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:144
    [16-Aug-2022 10:06:25 UTC] PHP  19. WC_Cart_Totals->get_shipping_from_cart() /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:850
    [16-Aug-2022 10:06:25 UTC] PHP Fatal error:  Uncaught TypeError: Argument 1 passed to wc_add_number_precision() must be of the type float, null given, called in /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1946 and defined in /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/wc-core-functions.php:1918
    Stack trace:
    #0 /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/wc-core-functions.php(1946): wc_add_number_precision(NULL, true)
    #1 /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(344): wc_add_number_precision_deep(NULL)
    #2 /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(850): WC_Cart_Totals->get_shipping_from_cart()
    #3 /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(144): WC_Cart_Totals->calculate_shipping_totals()
    #4 /Users/Ja in /Users/James/Local Sites/northstar/app/public/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1918
    


    ### WordPress Environment ###

    WordPress address (URL): https://dev.northstarroast.com
    Site address (URL): https://dev.northstarroast.com
    WC Version: 6.8.0
    REST API Version: ? 6.8.0
    WC Blocks Version: ? 8.0.0
    Action Scheduler Version: ? 3.4.0
    Log Directory Writable: ?
    WP Version: 6.0.1
    WP Multisite: –
    WP Memory Limit: 1 GB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_GB
    External object cache: –

    ### Server Environment ###

    Server Info: LiteSpeed
    PHP Version: 7.4.30
    PHP Post Max Size: 3 GB
    PHP Time Limit: 60000
    PHP Max Input Vars: 2000
    cURL Version: 7.84.0
    OpenSSL/1.1.1q

    SUHOSIN Installed: –
    MySQL Version: 5.7.39
    Max Upload Size: 2 GB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?

    ### Database ###

    WC Database Version: 6.8.0
    WC Database Prefix: ns_
    Total Database Size: 679.30MB
    Database Data Size: 368.81MB
    Database Index Size: 310.49MB
    ns_woocommerce_sessions: Data: 0.09MB + Index: 0.02MB + Engine InnoDB
    ns_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ns_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    ns_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    ns_woocommerce_order_items: Data: 8.52MB + Index: 3.52MB + Engine InnoDB
    ns_woocommerce_order_itemmeta: Data: 70.61MB + Index: 63.17MB + Engine InnoDB
    ns_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    ns_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    ns_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ns_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    ns_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ns_woocommerce_payment_tokens: Data: 0.13MB + Index: 0.05MB + Engine InnoDB
    ns_woocommerce_payment_tokenmeta: Data: 0.28MB + Index: 0.30MB + Engine InnoDB
    ns_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ns_actionscheduler_actions: Data: 0.08MB + Index: 0.13MB + Engine InnoDB
    ns_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ns_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ns_actionscheduler_logs: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    ns_aiowps_events: Data: 2.43MB + Index: 0.33MB + Engine MyISAM
    ns_aiowps_failed_logins: Data: 2.47MB + Index: 0.80MB + Engine MyISAM
    ns_aiowps_global_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    ns_aiowps_login_activity: Data: 0.13MB + Index: 0.04MB + Engine MyISAM
    ns_aiowps_login_lockdown: Data: 0.17MB + Index: 0.04MB + Engine MyISAM
    ns_commentmeta: Data: 1.03MB + Index: 0.77MB + Engine MyISAM
    ns_comments: Data: 24.89MB + Index: 9.93MB + Engine MyISAM
    ns_leafletmapsmarker_layers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    ns_leafletmapsmarker_markers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    ns_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    ns_litespeed_img_optm: Data: 1.07MB + Index: 0.54MB + Engine MyISAM
    ns_litespeed_img_optming: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    ns_litespeed_url: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ns_litespeed_url_file: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    ns_nm_personalized: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ns_options: Data: 3.30MB + Index: 0.22MB + Engine InnoDB
    ns_pimwick_gift_card: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ns_pimwick_gift_card_activity: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ns_postmeta: Data: 173.70MB + Index: 179.53MB + Engine InnoDB
    ns_posts: Data: 24.55MB + Index: 9.06MB + Engine InnoDB
    ns_redirection_404: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    ns_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ns_redirection_items: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    ns_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    ns_sbi_feeds: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ns_sbi_feed_caches: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ns_sbi_instagram_feeds_posts: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ns_sbi_instagram_feed_locator: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ns_sbi_instagram_posts: Data: 0.36MB + Index: 0.00MB + Engine InnoDB
    ns_sbi_sources: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ns_slp_extendo_meta: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    ns_store_locator: Data: 0.06MB + Index: 0.08MB + Engine InnoDB
    ns_tcb_api_error_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ns_td_fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ns_td_groups: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ns_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ns_terms: Data: 0.01MB + Index: 0.02MB + Engine MyISAM
    ns_term_relationships: Data: 0.08MB + Index: 0.17MB + Engine MyISAM
    ns_term_taxonomy: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    ns_tge_answers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ns_tge_questions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ns_tqb_event_log: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    ns_tqb_results: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ns_tqb_results_links: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    ns_tqb_tests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ns_tqb_tests_items: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ns_tqb_users: Data: 0.20MB + Index: 0.11MB + Engine InnoDB
    ns_tqb_user_answers: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    ns_tqb_variations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ns_usermeta: Data: 20.55MB + Index: 21.06MB + Engine InnoDB
    ns_users: Data: 1.52MB + Index: 0.80MB + Engine InnoDB
    ns_wcrs_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ns_wcs_payment_retries: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    ns_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    ns_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    ns_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ns_wc_customer_lookup: Data: 2.52MB + Index: 1.86MB + Engine InnoDB
    ns_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    ns_wc_order_coupon_lookup: Data: 0.08MB + Index: 0.09MB + Engine InnoDB
    ns_wc_order_product_lookup: Data: 10.52MB + Index: 9.06MB + Engine InnoDB
    ns_wc_order_stats: Data: 5.52MB + Index: 4.55MB + Engine InnoDB
    ns_wc_order_tax_lookup: Data: 0.34MB + Index: 0.27MB + Engine InnoDB
    ns_wc_product_attributes_lookup: Data: 0.16MB + Index: 0.08MB + Engine InnoDB
    ns_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ns_wc_product_meta_lookup: Data: 0.09MB + Index: 0.16MB + Engine InnoDB
    ns_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ns_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ns_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ns_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ns_wc_zapier_history: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    ns_wfblockediplog: Data: 0.03MB + Index: 0.02MB + Engine MyISAM
    ns_wfblocks7: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    ns_wfconfig: Data: 0.41MB + Index: 0.01MB + Engine MyISAM
    ns_wfcrawlers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    ns_wffilechanges: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    ns_wffilemods: Data: 1.61MB + Index: 0.33MB + Engine MyISAM
    ns_wfhits: Data: 1.90MB + Index: 0.38MB + Engine MyISAM
    ns_wfhoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    ns_wfissues: Data: 0.02MB + Index: 0.01MB + Engine MyISAM
    ns_wfknownfilelist: Data: 0.84MB + Index: 0.10MB + Engine MyISAM
    ns_wflivetraffichuman: Data: 0.03MB + Index: 0.04MB + Engine MyISAM
    ns_wflocs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    ns_wflogins: Data: 0.13MB + Index: 0.03MB + Engine MyISAM
    ns_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ns_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ns_wfnotifications: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    ns_wfpendingissues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    ns_wfreversecache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    ns_wfsnipcache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    ns_wfstatus: Data: 0.07MB + Index: 0.04MB + Engine MyISAM
    ns_wftrafficrates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    ns_wow_mwp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ns_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ns_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    ns_yoast_indexable: Data: 3.52MB + Index: 1.23MB + Engine InnoDB
    ns_yoast_indexable_hierarchy: Data: 0.17MB + Index: 0.28MB + Engine InnoDB
    ns_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    ns_yoast_primary_term: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    ns_yoast_seo_links: Data: 0.20MB + Index: 0.13MB + Engine InnoDB
    ns_yoast_seo_meta: Data: 0.06MB + Index: 0.00MB + Engine InnoDB

    ### Post Type Counts ###

    acf-field: 117
    acf-field-group: 18
    attachment: 1542
    brew-method: 7
    country: 15
    custom_css: 1
    event_magic_tickets: 347
    faq: 13
    mc4wp-form: 1
    nav_menu_item: 11
    oembed_cache: 20
    options: 22
    our-cafe: 4
    page: 76
    portfolioentry: 24
    post: 121
    product: 255
    product_variation: 515
    revision: 920
    shop_coupon: 338
    shop_order: 37720
    shop_order_refund: 180
    shop_subscription: 647
    thrive_image: 1
    tqb_quiz: 1
    tqb_results: 1
    tqb_splash: 1
    view: 1
    view-template: 1
    wc_zapier_feed: 1
    yaymail_template: 11

    ### Security ###

    Secure connection (HTTPS): ?
    Hide errors from visitors: ?

    ### Active Plugins (43) ###

    ActiveCampaign: by ActiveCampaign – 8.1.10
    User Switching in Admin Bar: by wpexpertsio – 1.4
    Advanced Custom Fields PRO: by Delicious Brains – 5.12.3
    Akismet Anti-Spam: by Automattic – 5.0
    Better Search Replace: by Delicious Brains – 1.4.1
    Blank Slate: by Aaron Reimann & Micah Wood – 1.2.1
    Classic Editor: by WordPress Contributors – 1.6.2
    Clean and Simple Contact Form: by Alan Fuller – 4.7.10
    Crop Thumbnails: by Volkmar Kantor – 1.4.0
    Embed Code – Headers & Footers by DesignBombs: by DesignBombs – 2.0.4
    Export emails: by Joe’s Web Tools – 1.3.1
    Filename based asset cache busting: by Ben Lumley | Interoke Digital – 1.4
    Easy HTTPS (SSL) Redirection: by Tips and Tricks HQ – 1.9.1
    Smash Balloon Instagram Feed: by Smash Balloon – 6.0.6
    Judge.me Product Reviews for WooCommerce: by Judge.me – 1.3.19
    Kadence WooCommerce Email Designer: by Kadence WP – 1.5.2
    MC4WP: Mailchimp for WordPress: by ibericode – 4.8.7
    MainWP Child: by MainWP – 4.2.4
    Metorik Helper: by Metorik – 1.5.2
    NI Cookie Banner: by Network Intellect – 1.0
    PDF Embedder: by WP PDF Embedder Team – 4.6.4
    Post Types Order: by Nsp Code – 1.9.9.1
    PW WooCommerce Gift Cards Pro: by Pimwick
    LLC – 1.407

    Redirection: by John Godley – 5.3.2
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.5
    Store Locator Plus?: by Store Locator Plus? – 5.14.1
    Thrive Product Manager: by Thrive Themes – 1.3.0
    User Switching: by John Blackbourn & contributors – 1.7.0
    Twitter Feed: by Askupa Software – 3.0.8
    WooCommerce Weight Based Shipping: by weightbasedshipping.com – 5.3.23
    Woo Store Vacation: by MyPreview – 1.4.5
    WooCommerce All Products For Subscriptions: by WooCommerce – 3.4.1 (update to version 3.4.2 is available)
    WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.1.3
    WooCommerce Stripe Gateway: by WooCommerce – 6.5.1
    WooCommerce Google Analytics Integration: by WooCommerce – 1.5.13
    WooCommerce Referral System: by Codup.io – 1.3.9.11
    WooCommerce – Store Exporter Deluxe: by Visser Labs – 5.2.1
    WooCommerce Subscriptions: by WooCommerce – 4.5.0
    WooCommerce Zapier: by OM4 Software – 2.3.0
    WooCommerce: by Automattic – 6.8.0
    Yoast SEO: by Team Yoast – 19.5.1
    WP Mail SMTP: by WPForms – 3.5.1
    Toolset Views: by OnTheGoSystems – 3.6.3

    ### Inactive Plugins (31) ###

    Advanced WordPress Backgrounds: by nK – 1.9.2
    Anti-Spam by CleanTalk: by СleanTalk <[email protected]> – 5.182.2
    FooEvents Custom Attendee Fields: by FooEvents – 1.5.11
    FooEvents Express Check-in: by FooEvents – 1.3.11
    FooEvents for WooCommerce: by FooEvents – 1.12.23
    FooEvents Multi-Day: by FooEvents – 1.1.24
    FooEvents PDF Tickets: by FooEvents – 1.8.11
    FooEvents Seating: by FooEvents – 1.1.5
    Google Analytics Dashboard: by Team Yoast & Carson McDonald – 2.1.1
    Health Check & Troubleshooting: by The www.remarpro.com community – 1.4.5
    LiteSpeed Cache: by LiteSpeed Technologies – 5.1
    LitExtension: Shopping Carts to WooCommerce: by Litextension – 1.2.0
    Maintenance Mode: by Lukas Juhas – 2.4.4
    Post grid and filter ultimate: by WP OnlineSupport
    Essential Plugin – 1.4.5

    PW WooCommerce Gift Cards: by Pimwick
    LLC – 1.216

    Query Monitor: by John Blackbourn – 3.9.0
    Search & Replace: by Inpsyde GmbH – 3.2.1
    Thrive Quiz Builder: by Thrive Themes – 2.3.8
    Toolset Blocks: by OnTheGoSystems – 1.3.1
    Toolset Types: by OnTheGoSystems – 3.4.16
    Toolset WooCommerce Blocks: by OnTheGoSystems – 2.9.1
    UpdraftPlus – Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 2.22.11.25

    WC – APG Weight Shipping: by Art Project Group – 2.3.2.2
    WooCommerce – Autocomplete Orders: by Serious Plugins – 1.1.4
    WooCommerce Checkout Field Editor: by WooCommerce – 1.6.2 (update to version 1.7.3 is available)
    WooCommerce Events: by Grenade – 1.1.14
    WooCommerce Helper: by WooCommerce – 1.7.2 – Network enabled
    WooCommerce Payments: by Automattic – 4.5.1
    WooCommerce PayPal Payments: by WooCommerce – 1.9.2
    WP Migrate DB: by Delicious Brains – 1.0.17
    WP Sync DB: by Sean Lang – 1.5

    ### Dropin Plugins (2) ###

    advanced-cache.php: advanced-cache.php
    maintenance.php: maintenance.php

    ### Settings ###

    API Enabled: ?
    Force SSL: –
    Currency: GBP (£)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    pw gift card (pw-gift-card)
    simple (simple)
    subscription (subscription)
    variable (variable)
    variable subscription (variable-subscription)

    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)

    Connected to WooCommerce.com: ?
    Enforce Approved Product Download Directories: –

    ### WC Pages ###

    Shop base: #11 – /shop/
    Basket: #12 – /cart/
    Checkout: #13 – /checkout/
    My account: #14 – /my-account/
    Terms and conditions: #6217 – /terms-and-conditions/

    ### Theme ###

    Name: North Star Roast 2021
    Version: 1.0
    Author URL: https://www.split.co.uk
    Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build
    personally we recommend using a child theme. See: How to create a child theme

    WooCommerce Support: ?

    ### Templates ###

    Archive Template: Your theme has a woocommerce.php file. You will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues.
    Overrides: northstar2021/woocommerce/cart/cart.php
    northstar2021/woocommerce/content-product.php
    northstar2021/woocommerce/content-single-product.php
    northstar2021/woocommerce/emails/plain/customer-completed-order.php
    northstar2021/woocommerce/emails/plain/customer-processing-order.php
    northstar2021/woocommerce/loop/orderby.php
    northstar2021/woocommerce/loop/pagination.php
    northstar2021/woocommerce/single-product/add-to-cart/variable.php
    northstar2021/woocommerce/single-product/related.php
    northstar2021/woocommerce/single-product/review.php
    northstar2021/woocommerce/single-product/up-sells.php
    northstar2021/woocommerce/single-product-reviews.php

    ### Pimwick Plugins ###

    PW WooCommerce Gift Cards Pro: License key: PW-618a89467ba4d
    Result: success
    Cached: 2022-08-16

    ### Subscriptions ###

    WCS_DEBUG: ? No
    Subscriptions Mode: ? Staging
    Subscriptions Live URL: https://www.northstarroast.com
    Subscription Statuses: wc-on-hold: 246
    wc-cancelled: 401

    WooCommerce Account Connected: ? Yes
    Active Product Key: ? Yes
    Custom Retry Rules: ? No
    Custom Retry Rule Class: ? No
    Custom Raw Retry Rule: ? No
    Custom Retry Rule: ? No
    Retries Migration Status: ? Completed
    Report Cache Enabled: ? Yes
    Cache Update Failures: ? 0 failure

    ### Store Setup ###

    Country / State: United Kingdom (UK)

    ### Subscriptions by Payment Gateway ###

    PayPal Checkout: wc-cancelled: 120
    Stripe: wc-cancelled: 281
    wc-on-hold: 246

    ### Payment Gateway Support ###

    Stripe: products
    refunds
    tokenization
    add_payment_method
    subscriptions
    subscription_cancellation
    subscription_suspension
    subscription_reactivation
    subscription_amount_changes
    subscription_date_changes
    subscription_payment_method_change
    subscription_payment_method_change_customer
    subscription_payment_method_change_admin
    multiple_subscriptions

    PayPal Checkout: products
    refunds
    subscriptions
    subscription_cancellation
    subscription_reactivation
    subscription_suspension
    multiple_subscriptions
    subscription_payment_method_change_customer
    subscription_payment_method_change_admin
    subscription_amount_changes
    subscription_date_changes

    ### Admin ###

    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    experimental-product-tour
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    wc-pay-promotion
    wc-pay-welcome-page
    wc-pay-subscriptions-page

    Disabled Features: minified-js
    settings

    Daily Cron: ? Next scheduled: 2022-08-17 09:11:03 +00:00
    Options: ?
    Notes: 90
    Onboarding: completed

    ### All Products for WooCommerce Subscriptions ###

    Template Overrides: –

    ### Action Scheduler ###

    Complete: 139
    Oldest: 2022-08-15 17:59:28 +0000
    Newest: 2022-08-16 10:00:49 +0000

    Failed: 16
    Oldest: 2021-03-19 18:06:22 +0000
    Newest: 2021-08-27 09:20:54 +0000

    Pending: 2
    Oldest: 2022-08-17 02:54:11 +0000
    Newest: 2022-08-17 09:26:28 +0000

    ### Templates ###

    Extended logging mode for Store Exporter Deluxe: ?Inactive?Turn on Logging mode
    Debugging mode for Store Exporter Deluxe: ?Inactive?Turn on Debugging mode
    Scheduled Export to FTP: ?
    Scheduled Export to SFTP: ? The required SFTP functions are not available; ssh2_connect()
    ssh2_auth_password()
    ssh2_sftp(). Contact your hosting provider.

    ### WooCommerce Zapier ###

    Database Version: ? 14
    Detailed Logging Enabled: No
    Legacy Mode Disabled: ? Yes
    SSL: ? Yes
    REST API Authentication Key(s): ? 0
    Task History Record Count: ? 0
    Webhook #1: WooCommerce Zapier
    – Status: active
    – Trigger: customer.created
    – Delivery Count: 0

    ### Status report information ###

    Generated at: 2022-08-16 15:24:16 +00:00

    Hi @reallygreenjames,

    Thanks for providing the details!

    I tested on your staging site and am able to reproduce the error only when I add a second item to the cart. The first item I add to the cart does not cause any error. Since you are using a custom theme, I am guessing there might be more customisations in place which could be the cause of the error.

    To perform a thorough test, I’d suggest you comment out the custom popup customization code, deactivate all plugins except WooCommerce and first test with Storefront theme activated. Then activate your current custom theme and repeat the test. Make sure no plugins except WooCommerce are activated.

    We want to compare any differences in behaviour and capture the cause of the error. If an error occurs, please provide the theme and error details along with the WooCommerce System Status Report.

    Thanks!

    Mirko P.

    (@rainfallnixfig)

    Hi @reallygreenjames!

    Thank you for sending over your site’s system status.

    I confirm that Add to Cart works fine with Storefront theme. It’s just my customisation that is a problem.

    We provide support on this forum for WooCommerce core’s inbuilt features and compatibility issues arising from using custom code or custom themes are outside our scope of support.

    I see that you’re using a theme called “North Star Roast 2021” by https://www.split.co.uk which should be your development agency – if it’s not please reach out to the developer/agency.

    If you need more help troubleshooting this issue I’d recommend asking in these channels:

    We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    I’m going to close this thread now but feel free to open a new topic if you need help with WooCommerce core’s features.

    Cheers.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Critical error from adding variations to cart after v6.8 update’ is closed to new replies.