Update 9001 fails when menu has been removed

Created on 5 February 2025, 2 months ago

Problem/Motivation

When running database updates "taxonomy_menu_ui_update_9001", when trying to update a menu link content entity that is part of a menu that has been removed, the update fails with the error:

 [error]  SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'bundle' cannot be null: UPDATE "menu_link_content" SET "revision_id"=:db_update_placeholder_0, "bundle"=:db_update_placeholder_1, "uuid"=:db_update_placeholder_2, "langcode"=:db_update_placeholder_3
> WHERE "id" = :db_condition_placeholder_0; Array
> (
>     [:db_update_placeholder_0] => 1234
>     [:db_update_placeholder_1] => 
>     [:db_update_placeholder_2] => xxxxxx-xxxx-xxxx-xxxxx-xxxx
>     [:db_update_placeholder_3] => en
>     [:db_condition_placeholder_0] => 123456
> )
>  

Steps to reproduce

Honestly, not sure how we got here but my best guess is that these menu items were part of a menu that has gotten deleted.

Proposed resolution

Check that the menu name value is not empty prior to update.

Remaining tasks

_ Issue Fork
_ Test Update
_ Merge Code

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States scott_earnest

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024