• This has been an issue for multiple versions.

    Example error location:

    PHP Warning: A non-numeric value encountered in /public_html/wp-content/plugins/woo-shipping-dpd-baltic/admin/class-dpd-parcels.php on line 325

    And that line would refer to:

    $temp_weight = $cart_item['data']->get_weight() * $cart_item['quantity'];

    Some (if not most) shops do not provide weight values for products thus it would be logical to convert retrieved weight values to numeric value (weight can also be a float/double so probably it’s best to check if value is returned, and if not, assign a 0).

    There are multiple locations where this is happening, ie same file on line 338:

    $total_weight_of_cart[] = $cart_item['data']->get_weight();

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.