• Resolved Leif Harmsen

    (@leifharmsen)


    PHP Warning: A non-numeric value encountered in /var/www/html/wp-content/plugins/canada-post-shipping-for-woocommerce/canada-post-shipping-for-woocommerce-canada-post.php on line 314, referer: https://*****/product-category/8mm/

    It’s just a warning. I’m just reporting it, maybe it’s helpful to you and your project.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Leif Harmsen

    (@leifharmsen)

    This won’t let up and is polluting my error log file. Perhaps you need to check if a variable is a number before doing a comparison on that line or something?

    Line 314 is
    $weight_total += $item[‘quantity’] * $this->get_normalized_weight($non_normalized_weight);

    So like, maybe try checking that $non_normalized_wight isn’t NULL before feeding it into get_normalized_weight ????

    I don’t want to fix it just to see it get written over with the same bug in the next version.

    Plugin Author smallfishes

    (@smallfishes)

    Hi @leifharmsen

    I’m working on a release for this and should have it out by end of day.

    Thanks!

    Plugin Author smallfishes

    (@smallfishes)

    @leifharmsen

    Could you send me an email at mike at smallfishanalytics dot com so I can send you a version to test with?

    Plugin Author smallfishes

    (@smallfishes)

    Closing

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Warning’ is closed to new replies.