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)

Comments

bobemoe created an issue. See original summary.

steelsector’s picture

Did you managed to find what was the problem?
I have got the same one when i tried to publish my local site.

bobemoe’s picture

I'm afraid I haven't. I have just left the module installed. It's not in use but its not causing any harm other than the negligible resources it probably uses.

yivanov’s picture

I hit the same problem. What did the trick for me is that first I uninstall the module without removing it from file directory and composer. After uninstallation, the module can be removed from directory and composer.

bobemoe’s picture

Finally managed to uninstall this! What I did was export my config with:

~/drupal/vendor/bin/drupal ce --directory=./config

Then I grepped for group_permission grep group_permission ~/drupal/config/ -Ri

I found a match in some view files

	   ../../../config/views.view.group_members.yml
	   ../../../config/views.view.group_nodes.yml

So I delete the config

~/drupal/vendor/bin/drupal cd active views.view.group_members
~/drupal/vendor/bin/drupal cd active views.view.group_nodes

Then the module uninstalled properly, and I deleted it from the filesystem :)

LOBsTerr’s picture

Status: Active » Closed (works as designed)

I have double checked this case and dependencies for views provided by group module.

dependencies:
  module:
    - group

The views have correct dependency on group module, which provides the "group_permission" plugin for views. These views are correctly removed. I assume at some versions, these dependencies were missing or something was remove incorrectly.

It works now as it should