Editing Group Content Menu Link Results in Fatal Error

Created on 7 July 2022, almost 3 years ago
Updated 6 June 2024, 11 months ago

Problem/Motivation

When we visit a group, edit a menu, and then tried to update the title of a a menu link we get the following fatal error:

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "entity:menu_link_content:group_menu_link_content-206" plugin does not exist.

It spits out a whole bunch of plugins (but none of them match the basic pattern of group_men_link_content) and then this stack trace:

Drupal\Core\Plugin\DefaultPluginManager->getDefinition('entity:menu_link_content:group_menu_link_content-206') (Line: 295)
Drupal\Core\TypedData\TypedDataManager->getCanonicalRepresentation(Object) (Line: 139)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validateNode(Object, NULL, 1) (Line: 100)
Drupal\Core\TypedData\Validation\RecursiveContextualValidator->validate(Object, NULL, NULL) (Line: 93)
Drupal\Core\TypedData\Validation\RecursiveValidator->validate(Object) (Line: 132)
Drupal\Core\TypedData\TypedData->validate() (Line: 489)
Drupal\Core\Entity\ContentEntityBase->validate() (Line: 85)
Drupal\menu_item_extras\Entity\MenuItemExtrasMenuLinkContent->validate() (Line: 188)
Drupal\Core\Entity\ContentEntityForm->validateForm(Array, Object)
call_user_func_array(Array, Array) (Line: 82)
Drupal\Core\Form\FormValidator->executeValidateHandlers(Array, Object) (Line: 275)
Drupal\Core\Form\FormValidator->doValidateForm(Array, Object, 'menu_link_content_group_menu_link_content-206_form') (Line: 118)
Drupal\Core\Form\FormValidator->validateForm('menu_link_content_group_menu_link_content-206_form', Array, Object) (Line: 588)
Drupal\Core\Form\FormBuilder->processForm('menu_link_content_group_menu_link_content-206_form', Array, Object) (Line: 320)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 48)
Drupal\Core\Entity\EntityFormBuilder->getForm(Object) (Line: 184)
Drupal\group_content_menu\Controller\GroupContentMenuController->editLink(Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 709)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mikemadison Seattle, WA

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡¦Ukraine rollins

    Patch that @yepa provided for the menu_item_extras resolved the issue for me
    Thank you!

  • Status changed to Needs review 11 months ago
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 8.0 & MySQL 5.7
    last update 11 months ago
    Patch Failed to Apply
  • Status changed to Needs work 1 day ago
  • πŸ‡ΊπŸ‡¦Ukraine voleger Ukraine, Rivne

    It needs work.

    • Menu Item Extras has to introduce extension point there, so any other menu integration solution can integrate with the module as well.
    • Group Content Menu extends the Menu Item Extras functionality

    By extension, the point can be the event or hook implementation.

Production build 0.71.5 2024