Support » Plugin: USPS Simple Shipping for Woocommerce » PHP Warning: A non-numeric value encountered

  • Resolved Derek Wilcox

    (@themassapothecary)


    PHP Warning: A non-numeric value encountered in /home/497572.cloudwaysapps.com/*********/public_html/wp-content/plugins/woo-usps-simple-shipping/class-shipping-usps.php on line 127′, referer: https://massapothecary.com/checkout1/

    In Apache error logs I have been getting the above error multiple times a day. Do you know what can be causing this?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Dan

    (@dangoodman)

    The warning appears due to some products in the cart having no dimensions set. Since the USPS API returns applicable rates based on items’ weight and dimensions, it’s expected to return incorrect results for items having zero dimensions or zero weight.

    • This reply was modified 7 months ago by Dan.
    Thread Starter Derek Wilcox

    (@themassapothecary)

    @dangoodman is it something I can just ignore or is it a problem?

    Plugin Author Dan

    (@dangoodman)

    It means you have products without the dimensions set. It’d better provide them to ensure the USPS API correctly estimates the shipping rates.

    Thread Starter Derek Wilcox

    (@themassapothecary)

    @dangoodman I get that. Besides possible inaccurate pricing for shipping methods will it cause any other problems?

    Plugin Author Dan

    (@dangoodman)

    Besides that, it won’t cause any problem.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP Warning: A non-numeric value encountered’ is closed to new replies.