State address_8101_processed is not initialized

Created on 21 October 2024, 6 months ago

Problem/Motivation

Attempting to run address_post_update_convert_names_subdivisions() (post update hook) without first running address_update_8101() yields a fatal error:

TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in address_post_update_convert_names_subdivisions() (line 19 of /var/www/web/modules/contrib/address/address.post_update.php) #0 /var/www/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(280): address_post_update_convert_names_subdivisions(Array)

Steps to reproduce

Install a previous version (that already includes address_update_8101() but not address_post_update_convert_names_subdivisions()), update to the current version, run drush updb.

Proposed resolution

Do not throw a type error if the state value is NULL.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States joshf

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

Comments & Activities

Production build 0.71.5 2024