Update hook password_policy_update_8302 fails with error.

Created on 13 October 2023, 9 months ago
Updated 7 April 2024, 3 months ago

Problem/Motivation

When running update hooks, I am getting the following error causing the update hook to fail:
[warning] Undefined array key "field_last_password_reset_timezone" SqlContentEntityStorageSchema.php:2485
[error] TypeError: array_intersect_key(): Argument #1 ($array) must be of type array, null given in array_intersect_key() (line 2485 of /var/www/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php)

Proposed resolution

I recommend moving all the field.*.yml config from config/install to a new config/optional directory. I tried this locally and this appears to have resolved the issue on my end.

πŸ› Bug report
Status

Postponed: needs info

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bribread22

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

Comments & Activities

Production build 0.69.0 2024