Export config - Missing bundle entity, entity type menu, entity id menu_link_content

Created on 16 September 2022, almost 2 years ago
Updated 12 June 2024, 11 days ago

Problem/Motivation

Using 2.x-dev, when trying to export config, via UI or drush, getting

In EntityType.php line 877:
  Missing bundle entity, entity type menu, entity id menu_link_content.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Postponed: needs info

Version

2.0

Component

Code

Created by

🇲🇾Malaysia ckng

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 jennypanighetti

    I get the same thing trying to uninstall our multilingual modules (i.e. 'content_translation').

    It's completely blocking.

  • 🇺🇸United States jennypanighetti

    Here's the full output stack.

    LogicException: Missing bundle entity, entity type menu, entity id menu_link_content. in Drupal\Core\Entity\EntityType->getBundleConfigDependency() (line 879 of core/lib/Drupal/Core/Entity/EntityType.php).
    Drupal\language\Entity\ContentLanguageSettings->calculateDependencies() (Line: 362)
    Drupal\Core\Config\ConfigManager->getConfigEntitiesToChangeOnDependencyRemoval('module', Array) (Line: 43)
    Drupal\system\Form\ModulesUninstallConfirmForm->addDependencyListsToForm(Array, 'module', Array, Object, Object) (Line: 160)
    Drupal\system\Form\ModulesUninstallConfirmForm->buildForm(Array, Object)
    call_user_func_array(Array, Array) (Line: 534)
    Drupal\Core\Form\FormBuilder->retrieveForm('system_modules_uninstall_confirm_form', Object) (Line: 281)
    Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
    Drupal\Core\Controller\FormController->getContentResult(Object, Object)
    call_user_func_array(Array, Array) (Line: 123)
    Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
    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: 169)
    Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
    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: 106)
    Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
    Drupal\page_cache\StackMiddleware\PageCache->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: 713)
    Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
  • Assigned to voleger
  • Status changed to Needs work over 1 year ago
  • 🇺🇦Ukraine voleger Ukraine, Rivne
  • Status changed to Postponed: needs info over 1 year ago
  • 🇦🇺Australia VladimirAus Brisbane, Australia

    I cannot reproduce the issue on Drupal 9.5 or 10.0. Here's what I did:

    • I installed and enabled module
    • I modified couple of menu items
    • I exported the config
    • Uninstalled and reenabled the module, repeated above process.

    There was no error messages.
    Please update the description and put the steps to reproduce.

  • 🇮🇳India shree.yesare

    Steps to reproduce

    • Create a Drupal 10 project with acquia/blt
    • Update the blt.yml and set the profile to standard.
       profile:
         name: standard
      
  • Edit the standard profile and add menu_item_extras under the install section in standard.info.yml
  • run blt setup
  • 🇩🇪Germany lmoeni

    I recently ran into this issue while installing the domain_menu_access module.
    This does not happen when the menu_item_extras module is not installed.

    I'm using the following versions:
    Drupal: 10.2.7
    Menu Item Extras: 3.0.2
    Domain Menu Access: 2.0.0

  • 🇺🇦Ukraine voleger Ukraine, Rivne

    I suggest creating an issue to domain_menu_access to support menu_item_extras during installation. There is no `menu_link_content` bundle for the `menu_link_content` entity on the project with the enabled `menu_item_extras` module.
    See the problematic line in hook_install implementation of `domain_menu_access` module: https://git.drupalcode.org/project/domain_menu_access/-/blob/2.0.x/domai...

  • Production build 0.69.0 2024