Facing one issue in deleting the menu items on my Drupal 8 Site.
Steps to reproduce:
Add a link to main menu.
Create Child terms under one link.
Delete the parent term.
After deleting the parent link child links stays they don't get deleted automatically.
If you want to edit/manually delete those links then a Fatal error is
coming.
Error Message : Drupal\Component\Plugin\Exception\PluginNotFoundException: Plugin ID 'menu_link_content:adad91f8-19c7-48c7-a88e-67aae4edd21e' was not found. in Drupal\Core\Menu\MenuLinkManager->getDefinition() (line 207 of /var/www/crain-platform/docroot/core/lib/Drupal/Core/Menu/MenuLinkManager.php).
After doing some debugging i see the menu data missing from menu_link_content table.Anyone have any idea why this is coming and how to fix this issue?
parent
to NULL in the tablemenu_link_content_data
and clear the cache to rebuild the menu tree.