Error when enabling Group in UI (works as expected via Drush)

Created on 12 February 2024, 10 months ago

Problem/Motivation

While enabling Group module via drush - drush en group works as expected and with no errors,
When I tried enabling Group module using UI, I received the following error:

The website encountered an unexpected error. Try again later.

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "group_relationship_type" entity type does not exist. in Drupal\Core\Entity\EntityTypeManager->getDefinition() (line 139 of core/lib/Drupal/Core/Entity/EntityTypeManager.php).
Drupal\Core\Entity\EntityTypeManager->getHandler('group_relationship_type', 'storage') (Line: 192)
Drupal\Core\Entity\EntityTypeManager->getStorage('group_relationship_type') (Line: 241)
Drupal\group\Plugin\Group\Relation\GroupRelationTypeManager->getRelationshipTypeStorage() (Line: 416)
Drupal\group\Plugin\Group\Relation\GroupRelationTypeManager->getGroupTypePluginMap() (Line: 57)
group_entity_bundle_info()
call_user_func_array(Object, Array) (Line: 409)
Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}(Object, 'group') (Line: 388)
Drupal\Core\Extension\ModuleHandler->invokeAllWith('entity_bundle_info', Object) (Line: 416)
Drupal\Core\Extension\ModuleHandler->invokeAll('entity_bundle_info') (Line: 94)
Drupal\Core\Entity\EntityTypeBundleInfo->getAllBundleInfo() (Line: 80)
Drupal\Core\Entity\EntityTypeBundleInfo->getBundleInfo('user') (Line: 65)
Drupal\content_moderation\ModerationInformation->isModeratedEntityType(Object) (Line: 259)
Drupal\content_moderation\EntityTypeInfo->entityBaseFieldInfo(Object) (Line: 68)
content_moderation_entity_base_field_info(Object) (Line: 290)
Drupal\Core\Entity\EntityFieldManager->Drupal\Core\Entity\{closure}(Object, 'content_moderation') (Line: 388)
Drupal\Core\Extension\ModuleHandler->invokeAllWith('entity_base_field_info', Object) (Line: 301)
Drupal\Core\Entity\EntityFieldManager->buildBaseFieldDefinitions('user') (Line: 195)
Drupal\Core\Entity\EntityFieldManager->getBaseFieldDefinitions('user') (Line: 345)
Drupal\Core\Entity\EntityFieldManager->getFieldDefinitions('user', 'user') (Line: 712)
Drupal\Core\Entity\ContentEntityBase->getFieldDefinitions() (Line: 700)
Drupal\Core\Entity\ContentEntityBase->getFieldDefinition('timezone') (Line: 614)
Drupal\Core\Entity\ContentEntityBase->getTranslatedField('timezone', 'x-default') (Line: 597)
Drupal\Core\Entity\ContentEntityBase->get('timezone') (Line: 335)
Drupal\user\Entity\User->getTimeZone() (Line: 177)
Drupal\Core\Session\AccountProxy->getTimeZone() (Line: 91)
Drupal\system\TimeZoneResolver->getTimeZone() (Line: 53)
Drupal\system\TimeZoneResolver->setDefaultTimeZone(Object, 'account.set', Object)
call_user_func(Array, Object, 'account.set', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'account.set') (Line: 65)
Drupal\Core\Session\AccountProxy->setAccount(Object) (Line: 77)
Drupal\Core\Session\AccountProxy->getAccount() (Line: 121)
Drupal\Core\Session\AccountProxy->hasPermission('view the administration theme') (Line: 68)
Drupal\user\Theme\AdminNegotiator->applies(Object) (Line: 67)
Drupal\Core\Theme\ThemeNegotiator->determineActiveTheme(Object) (Line: 414)
Drupal\Core\Theme\ThemeManager->initTheme(Object) (Line: 95)
Drupal\Core\Theme\ThemeManager->getActiveTheme() (Line: 43)
Drupal\sdc\ComponentNegotiator->__construct(Object, Object) (Line: 259)
Drupal\Component\DependencyInjection\Container->createService(Array, 'private__e0ujDrLdZt7SbM1S2A6epWx3UYTWtRkzqXiD78_aNvM') (Line: 455)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'plugin.manager.sdc') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('plugin.manager.sdc', 1) (Line: 440)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 273)
Drupal\Component\DependencyInjection\Container->createService(Array, 'plugin.cache_clearer') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('plugin.cache_clearer') (Line: 277)
Drupal\Core\Extension\ModuleInstaller->install(Array, 1) (Line: 83)
Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array) (Line: 175)
Drupal\system\Form\ModulesListConfirmForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 129)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 67)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 597)
Drupal\Core\Form\FormBuilder->processForm('system_modules_confirm_form', Array, Object) (Line: 325)
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: 627)
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: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
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: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->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: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

* Install fresh new Drupal Umami website
* composer require drupal/group
* Go to /en/admin/modules
* Enable only Group module
* Click "Continue" button when the message You must enable the Entity, Flexible permissions, VariationCache modules to install Group. appears

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.3

Component

Code

Created by

🇺🇸United States shaal Boca Raton, FL

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

Comments & Activities

  • Issue created by @shaal
  • 🇺🇸United States shaal Boca Raton, FL
  • 🇺🇸United States dalemoore

    I am running into the same issue. I set up two DDEV instances, one as a "test" instance, and the other as my hopefully final site after testing Group. The first time I enabled the module via Drush and had no issues. This time I decided to install it via the UI and was immediately met with the 'The "group_relationship_type" entity type does not exist' error.

  • 🇮🇳India ayush.pandey

    Tried the module version 3.3.x-dev on drupal 10.3.x-dev, and the issue is not reproducible. The group module, along with the dependent module gets enabled successfully with no issues. Please retry and check if this is fixed.

  • 🇳🇱Netherlands edvanleeuwen Waalwijk

    Same error with stable version. Dev solves it.

Production build 0.71.5 2024