PHP Error: Call to undefined function menu_link_content_entity_predelete() in menu_link_content_entity_pre_trash_delete()

Created on 6 June 2025, 5 months ago

Problem/Motivation

When attempting to delete content on the latest Drupal 11 and Trash module version, I get the following exception:

Error: Call to undefined function menu_link_content_entity_predelete() in menu_link_content_entity_pre_trash_delete() (line 527 of modules/contrib/trash/trash.module).
call_user_func_array() (Line: 355)
Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}() (Line: 307)
Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 354)
Drupal\Core\Extension\ModuleHandler->invokeAll() (Line: 217)
Drupal\Core\Entity\EntityStorageBase->invokeHook() (Line: 900)
Drupal\Core\Entity\ContentEntityStorageBase->invokeHook() (Line: 43)
Drupal__node__NodeStorageTrash6843468381027->delete() (Line: 362)
Drupal\Core\Entity\EntityBase->delete() (Line: 71)
Drupal\Core\Entity\ContentEntityDeleteForm->submitForm()

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dave reid Nebraska USA

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

Comments & Activities

Production build 0.71.5 2024