Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException: The "menu" entity type did not specify a storage handler. in Drupal\Core\Entity\EntityTypeManager->getHandler() (line 27

Created on 27 February 2020, almost 5 years ago
Updated 30 March 2023, over 1 year ago

"Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException: The "menu" entity type did not specify a storage handler. in Drupal\Core\Entity\EntityTypeManager->getHandler() (line 27"

Seen on Drupal 8.8.2

After running composer update, from 8.8.1

Tried drush entup (using devel_entity_updates (depends on devel)) - doesn't fix the issue.

If it's saying that error message (as per title):

"Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException: The "menu" entity type did not specify a storage handler. in Drupal\Core\Entity\EntityTypeManager->getHandler() (line 27"

Then, how can I actually specify a storage handler for it - is it a config setting I can put in the config as code i.e. within a yml file?

deleting vendor folder
clearing composer cache
composer update --with-dependencies
or just
composer update

none of the above worked

The error is seen when running drush ws

It's fatal, the site shows: "The website encountered an unexpected error. Please try again later."

Searched already for this, not found anything where someone else has seen it.

🐛 Bug report
Status

Active

Version

9.5

Component
Entity 

Last updated about 9 hours ago

Created by

🇬🇧United Kingdom therobyouknow

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.

  • 🇺🇸United States aitala

    HI,

    I'm getting a similar error in D9.5.7

    Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException: The "menu" entity type did not specify a list_builder handler. in Drupal\Core\Entity\EntityTypeManager->getHandler() (line 256 of /var/www/vhosts/drupal9/core/lib/Drupal/Core/Entity/EntityTypeManager.php).

    I'm also unable to edit the Admin menu - trying to reorder some of the parent items.

    Eric

  • 🇮🇳India nishtha.pradhan

    I'm getting the same error as #16 on Drupal 10.2.5
    It goes away after invalidation Drupal cache a few times.
    But it is indeed a fatal error, the site shows: "The website encountered an unexpected error. Please try again later."
    All I did was open the site and try to go to a particular menu from the admin dashboard.

  • 🇭🇺Hungary aron novak Hungary, Budapest

    We experience this on 10.3.6.
    /admin/structure/menu throws this strange fatal error.

    $a = \Drupal::entityTypeManager()->getDefinition('menu');
    print_r($a);
    

    As you can see, the menu definition gets impartial, but it's not behaving the same way at every cache rebuild.
    If there would be a faulty alter hook, I'd expect that it would kick in every time.

    A cache clear may or may not fix it. The subsequent cache clear may break it again.

    On this site, which is domain-enabled, high traffic site, it seems like a race condition. However I could reproduce it on a low-traffic non-live environment too, while trying to access admin pages during a cache clear.

    We do not use Redis, APCU, only pure database backend for the bins.

Production build 0.71.5 2024