When I try to enable the module I get the following:

The website encountered an unexpected error. Please try again later.

Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.group_type.edit_form" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 190 of core/lib/Drupal/Core/Routing/RouteProvider.php).

Drupal\entity_ui\EntityHandler\BasicFieldUI->__construct(Object, Object, Object) (Line: 59)
Drupal\entity_ui\EntityHandler\BasicFieldUI::createInstance(Object, Object) (Line: 249)
Drupal\Core\Entity\EntityTypeManager->createHandlerInstance('Drupal\entity_ui\EntityHandler\BasicFieldUI', Object) (Line: 238)
Drupal\Core\Entity\EntityTypeManager->getHandler('group', 'entity_ui_admin') (Line: 56)
Drupal\entity_ui\Routing\AdminRouteProviderSubscriber->onDynamicRouteEvent(Object, 'routing.route_dynamic', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('routing.route_dynamic', Object) (Line: 179)
Drupal\Core\Routing\RouteBuilder->rebuild() (Line: 83)
Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild() (Line: 302)
Drupal\Core\Extension\ModuleInstaller->install(Array, 1) (Line: 83)
Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array) (Line: 448)
Drupal\system\Form\ModulesListForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 111)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 51)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 585)
Drupal\Core\Form\FormBuilder->processForm('system_modules', Array, Object) (Line: 314)
Drupal\Core\Form\FormBuilder->buildForm('system_modules', Object) (Line: 74)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 574)
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}()
call_user_func_array(Object, Array) (Line: 144)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 64)
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: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 656)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

The website encountered an unexpected error. Please try again later.
RuntimeException: Recursive router rebuild detected. in Drupal\Core\Routing\RouteBuilder->rebuild() (line 121 of core/lib/Drupal/Core/Routing/RouteBuilder.php).

Drupal\Core\Routing\RouteBuilder->rebuild() (Line: 205)
Drupal\Core\Routing\RouteBuilder->rebuildIfNeeded() (Line: 217)
Drupal\Core\Routing\RouteBuilder->destruct() (Line: 50)
Drupal\Core\EventSubscriber\KernelDestructionSubscriber->onKernelTerminate(Object, 'kernel.terminate', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.terminate', Object) (Line: 84)
Symfony\Component\HttpKernel\HttpKernel->terminate(Object, Object) (Line: 32)
Stack\StackedHttpKernel->terminate(Object, Object) (Line: 634)
Drupal\Core\DrupalKernel->terminate(Object, Object) (Line: 22)

Suggestions?

Comments

Christopher Riley created an issue. See original summary.

Znak’s picture

Status: Active » Postponed

I can't reproduce your problem. On my site, it's worked fine. Please, need more info how to reproduce this problem?

Christopher Riley’s picture

Are you by chance running entity_ui? I dug deeper into the trace and believe it is an issue with that module. I tried updating it to the latest dev version however still run into the same issue. When I try to enable group via the GUI or the drush command line I still run into the same issue.

Suggestions on how to proceed?

Christopher Riley’s picture

I have posted an issue with entity_ui and it seems that if you enable group then entity_ui everything works as expected. I will be doing more testing/dev today and will update this issue with any additional information as it is gained.

LOBsTerr’s picture

Status: Postponed » Closed (works as designed)