Title: PHP Warning
Last modified: August 9, 2020

---

# PHP Warning

 *  Resolved [Leif Harmsen](https://wordpress.org/support/users/leifharmsen/)
 * (@leifharmsen)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/php-warning-249/)
 * 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/](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](https://wordpress.org/support/users/leifharmsen/)
 * (@leifharmsen)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/php-warning-249/#post-13238219)
 * 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](https://wordpress.org/support/users/smallfishes/)
 * (@smallfishes)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/php-warning-249/#post-13238915)
 * Hi [@leifharmsen](https://wordpress.org/support/users/leifharmsen/)
 * I’m working on a release for this and should have it out by end of day.
 * Thanks!
 *  Plugin Author [smallfishes](https://wordpress.org/support/users/smallfishes/)
 * (@smallfishes)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/php-warning-249/#post-13243845)
 * [@leifharmsen](https://wordpress.org/support/users/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](https://wordpress.org/support/users/smallfishes/)
 * (@smallfishes)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/php-warning-249/#post-13461314)
 * Closing

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP Warning’ is closed to new replies.

 * ![](https://ps.w.org/canada-post-shipping-for-woocommerce/assets/icon-256x256.
   png?rev=1976381)
 * [Canada Post Shipping For WooCommerce](https://wordpress.org/plugins/canada-post-shipping-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/canada-post-shipping-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/canada-post-shipping-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/canada-post-shipping-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/canada-post-shipping-for-woocommerce/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [smallfishes](https://wordpress.org/support/users/smallfishes/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/php-warning-249/#post-13461314)
 * Status: resolved