Woo commerce error

General Marketplace Discussion (User’s interaction forum)

Resolved
Viewing 1 reply thread
  • Author
    Posts
    • #128095
      joffrey.pelletier
      Participant

      Détails de l’erreur
      ======================
      Une erreur de type E_ERROR a été causée dans la ligne 476 du fichier /home/hsyh0079/public_html/wp-content/plugins/woocommerce/includes/wc-cart-functions.php. Message d’erreur : Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in /home/hsyh0079/public_html/wp-content/plugins/woocommerce/includes/wc-cart-functions.php:476
      Stack trace:
      #0 /home/hsyh0079/public_html/wp-content/plugins/woocommerce/includes/wc-cart-functions.php(476): array_keys()
      #1 /home/hsyh0079/public_html/wp-content/plugins/woocommerce/includes/wc-cart-functions.php(412): wc_shipping_methods_have_changed()
      #2 /home/hsyh0079/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1451): wc_get_chosen_shipping_method_for_package()
      #3 /home/hsyh0079/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1420): WC_Cart->get_chosen_shipping_methods()
      #4 /home/hsyh0079/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(339): WC_Cart->calculate_shipping()
      #5 /home/hsyh0079/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(850): WC_Cart_Totals->get_shipping_from_cart()
      #6 /home/hsyh0079/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(144): WC_Cart_Totals->calculate_shipping_totals()
      #7 /home/hsyh0079/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php(134): WC_Cart_Totals->calculate()
      #8 /home/hsyh0079/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart.php(1398): WC_Cart_Totals->__construct()
      #9 /home/hsyh0079/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-session.php(177): WC_Cart->calculate_totals()
      #10 /home/hsyh0079/public_html/wp-includes/class-wp-hook.php(303): WC_Cart_Session->get_cart_from_session()
      #11 /home/hsyh0079/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
      #12 /home/hsyh0079/public_html/wp-includes/plugin.php(470): WP_Hook->do_action()
      #13 /home/hsyh0079/public_html/wp-settings.php(600): do_action()
      #14 /home/hsyh0079/public_html/wp-config.php(92): require_once(‘/home/hsyh0079/…’)
      #15 /home/hsyh0079/public_html/wp-load.php(50): require_once(‘/home/hsyh0079/…’)
      #16 /home/hsyh0079/public_html/wp-admin/admin-ajax.php(22): require_once(‘/home/hsyh0079/…’)
      #17 {main}
      thrown

    • #128133

      @joffrey.pelletier, I would love to help you out.

      However as this issue is coming from WooCommerce (https://wordpress.org/support/plugin/woocommerce/), hence you need to contact them. As they can only resolve them.

Viewing 1 reply thread

The topic ‘Woo commerce error’ is closed to new replies.