Can't delete a group menu

Created on 24 June 2025, 28 days ago

Problem/Motivation

When trying to delete a menu
And using version 2.0.5 of this module
I am getting an error:
Drupal\Core\Entity\EntityStorageException: Some mandatory parameters are missing ("group") to generate a URL for route "entity.group_content_menu.canonical". in Drupal\Core\Entity\Sql\SqlContentEntityStorage->delete() (line 762 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

After applying patch from v3 to v2 (https://git.drupalcode.org/project/group_content_menu/-/commit/179c61339...)
Then the error message changes:
Drupal\Core\Entity\EntityStorageException: The "group_content_menu" entity with the ID "185" cannot have a URI as it does not have a group relationship in Drupal\Core\Entity\Sql\SqlContentEntityStorage->delete() (line 762 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

But I'm still unable to delete the menu.

Using unpatched v2.0.5 of group_content_menu and entity_usage up to v2.0-beta19 I can delete the menu.

Steps to reproduce

Adding and trying to delete a group seems to be enough.

Proposed resolution

We should be able to delete a group.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇬🇷Greece bserem

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

Comments & Activities

Production build 0.71.5 2024