Title: PHP Error: Undefined variable package_measurements
Last modified: May 15, 2018

---

# PHP Error: Undefined variable package_measurements

 *  Resolved [shhhadow](https://wordpress.org/support/users/shhhadow/)
 * (@shhhadow)
 * [8 years ago](https://wordpress.org/support/topic/php-error-undefined-variable-package_measurements/)
 * Hello. Upon adding products to the cart or entering the checkout page while Woocommerce
   Services USPS is an applicable shipping method, I receive this error for each
   product for which this shipping method is available:
 * Notice: Undefined variable: package_measurements in /home/shhhadowjay/public_html/
   jayeclothing.com/wp-content/plugins/woocommerce-services/classes/class-wc-connect-
   shipping-method.php on line 425
 * In addition, if I change the address at checkout to one where this shipping method
   is not available, the rates refresh fine with other shipping methods. Changing
   it again to require the USPS method seems to just throw the shipping refresh 
   into an endless loop.
 * This only began after updating Woocommerce Services to the latest version yesterday.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-error-undefined-variable-package_measurements%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Marcin](https://wordpress.org/support/users/robobot3000/)
 * (@robobot3000)
 * [8 years ago](https://wordpress.org/support/topic/php-error-undefined-variable-package_measurements/#post-10283655)
 * Hi [@shhhadow](https://wordpress.org/support/users/shhhadow/),
 * Thanks for reporting this! We just released a hotfix in 1.13.1 which should address
   this issue.

Viewing 1 replies (of 1 total)

The topic ‘PHP Error: Undefined variable package_measurements’ is closed to new 
replies.

 * ![](https://ps.w.org/woocommerce-services/assets/icon-256x256.png?rev=3234419)
 * [WooCommerce Tax (formerly WooCommerce Shipping & Tax)](https://wordpress.org/plugins/woocommerce-services/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-services/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-services/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-services/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-services/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-services/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Marcin](https://wordpress.org/support/users/robobot3000/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/php-error-undefined-variable-package_measurements/#post-10283655)
 * Status: resolved