Closed (fixed)
Project:
Drupal core
Version:
10.0.x-dev
Component:
menu system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Nov 2019 at 19:18 UTC
Updated:
24 Nov 2023 at 07:20 UTC
Jump to comment: Most recent
Comments
Comment #2
cilefen commentedThis looks as though it has been reported in the past #3052318-52: Update from 8.6 to 8.7 fails due to corrupt menu_link_content or taxonomy_term entity data. I am going to stall this pending verification.
Comment #3
cilefen commentedI did not intend to change the component field - sorry.
Comment #4
snable commented@cilefen Thanks for looking into it.
I am currently looking into the differences and i just recognized, related to the error message, that loading is more specific now:
used to load an array:
Right after that it throws the defined Exception in line 156 (MenuLinkContent.php) :
Comment #5
snable commentedComment #6
snable commentedI close this issue due to:
The reason for this error was missing menu_link_content_revision(s) for specific menu links.
This happened because the column "revision_id" in menu_link_content table was NULL due to some reason (maybe broken updates or similar).
Fixed it by manually adding menu_link_content_revision entires for those specific entries.
Comment #8
tavytav commenteda specific error when a page is created, added to menu (main navigation) and then while
attempting to “edit” the menu.
The website encountered an unexpected error. Please try again later.
Drupal\Component\Plugin\Exception\PluginException: Entity not found through the menu link plugin definition and could not fallback on UUID '1c12c94c-deb7-4bb8-89b8-400f336d8840' in Drupal\menu_link_content\Plugin\Menu\MenuLinkContent->getEntity()(line 157 of core\modules\menu_link_content\src\Plugin\Menu\MenuLinkContent.php).
Drupal\menu_link_content\Plugin\Menu\MenuLinkContent->getEditRoute() (Line: 442)
Drupal\menu_ui\MenuForm->buildOverviewTreeForm(Array, 467) (Line: 289)
Drupal\menu_ui\MenuForm->buildOverviewForm(Array, Object) (Line: 150)
Drupal\menu_ui\MenuForm->form(Array, Object) (Line: 149)
Drupal\Core\Entity\EntityForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 520)
Drupal\Core\Form\FormBuilder->retrieveForm('menu_edit_form', Object) (Line: 277)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 91)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
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: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 694)
Drupal\Core\DrupalKernel->handle(Object) (Line:
Comment #9
tavytav commented8.7.10 works fine, BUT upgrading to any 8.8.* versions appears to be causing the issue.
Comment #10
xjm@tavytav, this should be resolved in the latest 8.8 release. Can you open a new issue if you still cannot update, with complete steps to reproduce? Be sure to start from your last working database and codebase. Thanks!
Comment #11
hesco commentedOn a drupal 8.9.2 installation, running:
drush en -y deploy relaxedyields:
walking back up the dependency tree one module at a time, I get these results:
Other threads I have seen about this error have suggested the issue was with multiversion. Seems that may have been true, It through this error message, but successfully enable the module nonetheless. And with it enabled, I had no trouble enabling the rest of these modules.
Comment #12
joseph.olstadI get this error on 8.8.10 after deleting through the UI interface a menu link that I created in a script containing an internal system route for a link uri. In this case the block content route as for some reason this was the only way to give a hyperlink to block the content list page for roles that aren't block administrators.
rebuilding cache seems to resolve the error but it requires drush , it's because I have accidentally created two identical links programmatically instead of one.
For those that do not have drush they are pretty much out of luck.
Comment #13
joseph.olstadadded a new child issue
Comment #14
les limA cache clear wasn't sufficient for me; I had to manually clear out a row in the `menu_tree` table that was referencing a deleted menu_link_content entity in its `id` column. Not sure how that happened in the first place.
Comment #15
artinst4 commentedA cache clear didn't work for me either. #14 did the trick. I had to also delete all rows in the `menu_tree` table that referenced the same name in the `menu_name` column.
Comment #16
quietone commentedSupport requests shouldn't be critical.