• Resolved stanikub

    (@stanikub)


    Hi,

    since yesterday, we are encountering a problem with Woocommerce Checkout Page infinite loading (the shipping and payments options are nonstop loading) and sometimes we get these errors

    Warning: Undefined array key "price_mode"

    Screenshot of them whole – https://ibb.co/W6vtHjC

    What are those warnings, how can we resolve them and can they be a cause of the infinite loading problem?

    Thank you.

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

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

    (@stanikub)

    Ok, more info:

    Every time I update the billing/shipping city, I get this error in QueryMonitor Console and the endless loading starts. So I disabled your plugin and everything works normally.

    https://ibb.co/smz90sr

    {key: 'f547588503f0970e8d81e0c09b663abd', type: 'warning', message: 'Undefined array key "price_mode"', file: 'wp-content/plugins/conditional-shipping-for-woocom…ntend/class-woo-conditional-shipping-frontend.php', line: 73, …}
    component: "Plugin: conditional-shipping-for-woocommerce"
    file: "wp-content/plugins/conditional-shipping-for-woocommerce/includes/frontend/class-woo-conditional-shipping-frontend.php"
    key: "f547588503f0970e8d81e0c09b663abd"
    line: 73
    message: "Undefined array key \"price_mode\""
    stack: (12) ['Woo_Conditional_Shipping_Frontend->shipping_method_price_actions()', "apply_filters('woocommerce_shipping_method_add_rate_args')", 'WC_Shipping_Method->add_rate()', 'WC_Shipping_Flat_Rate->calculate_shipping()', 'WC_Shipping_Method->get_rates_for_package()', 'WC_Shipping->calculate_shipping_for_package()', 'WC_Shipping->calculate_shipping()', 'WC_Cart->calculate_shipping()', 'WC_AJAX::update_order_review()', "do_action('wc_ajax_update_order_review')", 'WC_AJAX::do_wc_ajax()', "do_action('template_redirect')"]
    type: "warning"
    Prototype: Object

    Can you advise on next steps how to resolve this?

    Plugin Author WP Trio

    (@wooelements)

    Hi,

    Thank you for taking time to report this issue.

    It seems there is a minor bug in Conditional Shipping which causes the warning message. It’s just a warning message and shouldn’t affect functionality unless you have WP_DEBUG_DISPLAY toggled on. It’s recommended to keep that off for production so minor warning messages don’t break the site.

    I will fix the warning message asap but in the meantime you can also fix it by saving each ruleset once or toggling WP_DEBUG_DISPLAY off.

    Closing this now but feel free to reopen if you need further help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning: Undefined array key “price_mode”’ is closed to new replies.