• Resolved ImpalerPLM

    (@impalerplm)


    I’m getting this error while using polylang plugin to switch to another language.

    Using WooCommerce 8.0.3, polylang latest version and DPD Shipping Baltic 1.2.63

    Fatal error: Uncaught ValueError: max(): Argument #1 ($value) must contain at least one element in public_html/wp-content/plugins/woo-shipping-dpd-baltic/admin/class-dpd-parcels.php:339 Stack trace: #0 public_html/wp-content/plugins/woo-shipping-dpd-baltic/admin/class-dpd-parcels.php(339): max() #1 public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php(256): DPD_Parcels->is_available() #2 public_html/wp-content/plugins/woocommerce/includes/class-wc-shipping.php(348): WC_Shipping_Method->get_rates_for_package() #3 public_html/wp-content/plugins/woocommerce/includes/class-wc-shipping.php(260): WC_Shipping->calculate_shipping_for_package() #4 public_html/wp-content/plugins/polylang-wc/frontend/frontend-cart.php(117): WC_Shipping->calculate_shipping() #5 public_html/wp-includes/class-wp-hook.php(310): PLLWC_Frontend_Cart->wp_enqueue_scripts() #6 public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #7 public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #8 public_html/wp-includes/script-loader.php(2225): do_action() #9 public_html/wp-includes/class-wp-hook.php(310): wp_enqueue_scripts() #10 public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #11 public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #12 public_html/wp-includes/general-template.php(3053): do_action() #13 public_html/wp-content/plugins/us-core/templates/header.php(15): wp_head() #14 public_html/wp-content/plugins/us-core/functions/helpers.php(165): include('/home/biastra/d…') #15 public_html/wp-content/themes/insectum/header.php(12): us_load_template() #16 public_html/wp-includes/template.php(785): require_once('/home/biastra/d…') #17 public_html/wp-includes/template.php(720): load_template() #18 public_html/wp-includes/general-template.php(48): locate_template() #19 public_html/wp-content/plugins/us-core/templates/single.php(7): get_header() #20 public_html/wp-content/plugins/us-core/functions/helpers.php(165): include('/home/biastra/d…') #21 public_html/wp-content/themes/insectum/page.php(12): us_load_template() #22 public_html/wp-includes/template-loader.php(106): include('/home/biastra/d…') #23 public_html/wp-blog-header.php(19): require_once('/home/biastra/d…') #24 public_html/index.php(17): require('/home/biastra/d…') #25 {main} thrown in public_html/wp-content/plugins/woo-shipping-dpd-baltic/admin/class-dpd-parcels.php on line 339

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author dpdbaltics

    (@dpdbaltics)

    Hey, @impalerplm ! We are aware of this issue already. We are implementing Polylang plugin compatibility with our next update. Stay tuned!

    For now I’m marking this ticket as resolved. If you have any additionall questions please let us know in the new ticket.

    Thread Starter ImpalerPLM

    (@impalerplm)

    great news! thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Getting this error when switching languages’ is closed to new replies.