Error when updating a menu link

Created on 21 August 2025, 12 days ago

In a project we hit this error while saving/updating a menu link content:

Drupal\Core\Entity\EntityStorageException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction: DELETE FROM "babel_source" WHERE hash NOT IN (SELECT DISTINCT hash FROM "babel_source_instance"); Array ( ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 817 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

Drupal\Core\Database\StatementWrapperIterator->execute() (Line: 851)
Drupal\Core\Database\Connection->query() (Line: 200)
Drupal\babel\BabelStorage->updateStatusTable() (Line: 99)
Drupal\babel\BabelStorage->delete() (Line: 47)
Drupal\babel_menu_link_content\BabelMenuLinkContentService->updateSourcesForLink() (Line: 47)
Drupal\babel_menu_link_content\Hook\BabelMenuLinkContentHook->updateMenuLinkContent() (Line: 32)
babel_menu_link_content_menu_link_content_update()
call_user_func_array() (Line: 416)

It seems that the SQL statement needs some attention

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇷🇴Romania claudiu.cristea Arad 🇷🇴

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