• Resolved ad3r0wb0tham

    (@ad3r0wb0tham)


    I have just installed Royal Mail Shipping Calculator version 1.3.0

    On adding a WooCommerce product (that has a weight) to my basket I get this warning:

    Warning: A non-numeric value encountered in [path to site] /wp-content/plugins/royal-mail-woocommerce-shipping-calculator/class-wc-royal-mail-shipping-method.php on line 275

    Warning: A non-numeric value encountered in [path to site] /wp-content/plugins/royal-mail-woocommerce-shipping-calculator/class-wc-royal-mail-shipping-method.php on line 302

    Server Apache 2.0
    PHP Version 7.2.7

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

    (@ad3r0wb0tham)

    It turns out that it’s because I didn’t have length width and height populated for the product.

    A useful improvement would be to display a useful warning to the user if these values are missing instead of letting the default PHP warning happen (or for people with error display turned off they would simply not know)

    Thanks

    Plugin Author Waseem Senjer

    (@waseem_senjer)

    Hello

    Please, update the plugin to 1.3.1 it should fix the issue ??

    Best Wishes,
    Waseem

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP warning “A non-numeric value encountered”’ is closed to new replies.