Undefined variable: state if orders are saved in other steps of checkout

Created on 19 January 2016, over 9 years ago
Updated 18 August 2025, 2 months ago

If other modules or rules modify the order object in any moment of the checkout (thus triggering the event "Before saving a commerce order") prior to having the completed billing/shipping information, the module throws a php warning:

Notice: Undefined variable: state in commerce_avatax_check_address() (line 1187 of /var/www/docroot/sites/all/modules/contrib/commerce_avatax/commerce_avatax.module).

πŸ› Bug report
Status

Closed: outdated

Version

4.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain marcoscano Barcelona, Spain

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024