localgovdrupal / localgov_directories

Searchable, filterable, directories of information, and locations.
1 stars 3 forks source link

Entity/field definitions Mismatched entity and/or field definitions - drupal/address address_line_3 not added with hook_update_N #407

Open finnlewis opened 1 day ago

finnlewis commented 1 day ago

We've seen a couple of instances where it appears that the address fields are out of sync with the schema.

This results in errors reported on admin/reports/status

Entity/field definitions

Mismatched entity and/or field definitions The following changes were detected in the entity type and field definitions.

Geo

The geo_entity.postal_address field needs to be updated.

Geo

The localgov_geo.postal_address field needs to be updated.

Content

The node.localgov_directory_address field needs to be updated.

Paragraph

The paragraph.localgov_contact_address field needs to be updated.

image

From discussion in Slack between Joe and Ekes, it seems like a hook_update from drupal/address has not run properly.

The update in question is address_update_9201() :

https://git.drupalcode.org/project/address/-/blob/2.0.x/address.install?ref_type=heads#L31

On Greenwich, this does appear to have run, but we do not have the Address Line 3 field.

For Joe at Blackburn, this also appears to have been the case.

Why might this be?

What's a repeatable fix?