The "group_permission" plugin does not exist; when trying to uninstall the module

Created on 15 June 2017, about 7 years ago
Updated 15 May 2024, about 1 month ago

I have tried reinstalling and uninstalling but each time uninstall gives the following exception.

After the uninstall attempt and exception it seems the module is removed as drupal thinks it is uninstalled and allows reinstall, however the admin navigation still exists although attempting to go to any of the pages gives an exception. Curiously the /admin/group/settings page still loads. Functionality returns when reinstalled.

This was installed some time ago (maybe 6 - 9 months) but has been periodically updated and is now at rc1, so it could be a left over issue from beta or pre-beta release?

Drupal\Component\Plugin\Exception\PluginNotFoundException: The "group_permission" plugin does not exist. in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 52 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).

Drupal\Core\Plugin\DefaultPluginManager->getDefinition('group_permission') (Line: 16)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('group_permission', Array) (Line: 84)
Drupal\Component\Plugin\PluginManagerBase->createInstance('group_permission') (Line: 810)
Drupal\views\Plugin\views\display\DisplayPluginBase->getPlugin('access') (Line: 194)
Drupal\views\Plugin\views\display\PathPluginBase->getRoute('group_nodes', 'page_1') (Line: 220)
Drupal\views\Plugin\views\display\PathPluginBase->collectRoutes(Object) (Line: 120)
Drupal\views\EventSubscriber\RouteSubscriber->routes()
call_user_func(Array) (Line: 146)
Drupal\Core\Routing\RouteBuilder->rebuild() (Line: 83)
Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild() (Line: 473)
Drupal\Core\Extension\ModuleInstaller->uninstall(Array, 1) (Line: 91)
Drupal\Core\ProxyClass\Extension\ModuleInstaller->uninstall(Array) (Line: 160)
Drupal\system\Form\ModulesUninstallConfirmForm->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_uninstall_confirm_form', Array, Object) (Line: 314)
Drupal\Core\Form\FormBuilder->buildForm(Object, 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: 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)

πŸ› Bug report
Status

Closed: works as designed

Component

Code

Created by

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 W01F

    Just commenting I finally got around to removing group v 2.2.2 from a site, and this was the last step. I had to reinstall group, manually delete these two views (group nodes, group members), then uninstall and remove the module again, and everything looks good.

Production build 0.69.0 2024