Issue arises upon activation, when using Organic Groups

Created on 3 February 2021, over 3 years ago
Updated 19 March 2024, 3 months ago

Problem/Motivation

The below error arises when I try to enable the module:

TypeError: Argument 2 passed to Drupal\og\Plugin\Derivative\OgLocalTask::__construct() must be an instance of Drupal\Core\Routing\RouteProvider, instance of Drupal\Core\Routing\RouteProviderLazyBuilder given, called in /home/vtev1369/smartcordc/htdocs/modules/og/src/Plugin/Derivative/OgLocalTask.php on line 52 in Drupal\og\Plugin\Derivative\OgLocalTask->__construct() (line 41 of modules/og/src/Plugin/Derivative/OgLocalTask.php).

Steps to reproduce

Installed the module, trying to activate the above error erises which prevent the site from runing. Need to use Drush to revert back by disabling this module. It seems clashing with OG (Organic Group)

Traces:
Drupal\og\Plugin\Derivative\OgLocalTask->__construct(Object, Object) (Line: 52)
Drupal\og\Plugin\Derivative\OgLocalTask::create(Object, 'og.og_admin_routes') (Line: 25)
Drupal\Core\Plugin\Discovery\ContainerDerivativeDiscoveryDecorator->getDeriver('og.og_admin_routes', Array) (Line: 99)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDerivatives(Array) (Line: 87)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions() (Line: 284)
Drupal\Core\Plugin\DefaultPluginManager->findDefinitions() (Line: 175)
Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() (Line: 201)
Drupal\Core\Menu\LocalTaskManager->getDefinitions() (Line: 226)
Drupal\Core\Menu\LocalTaskManager->getLocalTasksForRoute('entity.webform.collection') (Line: 310)
Drupal\Core\Menu\LocalTaskManager->getTasksBuild('entity.webform.collection', Object) (Line: 378)
Drupal\Core\Menu\LocalTaskManager->getLocalTasks('entity.webform.collection', 0) (Line: 505)
webform_menu_links_discovered_alter(Array, NULL, NULL) (Line: 539)
Drupal\Core\Extension\ModuleHandler->alter('menu_links_discovered', Array) (Line: 166)
Drupal\Core\Menu\MenuLinkManager->getDefinitions() (Line: 189)
Drupal\Core\Menu\MenuLinkManager->rebuild() (Line: 83)
Drupal\Core\EventSubscriber\MenuRouterRebuildSubscriber->menuLinksRebuild() (Line: 71)
Drupal\Core\EventSubscriber\MenuRouterRebuildSubscriber->onRouterRebuild(Object, 'routing.route_finished', Object)
call_user_func(Array, Object, 'routing.route_finished', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('routing.route_finished', Object) (Line: 197)
Drupal\Core\Routing\RouteBuilder->rebuild() (Line: 83)
Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild() (Line: 68)
Drupal\Core\Routing\RouteProviderLazyBuilder->getRouteProvider() (Line: 99)
Drupal\Core\Routing\RouteProviderLazyBuilder->getRoutesByNames(Array) (Line: 619)
Drupal\admin_toolbar_tools\Plugin\Derivative\ExtraLinks->routeExists('entity.block_content_type.overview_form') (Line: 109)
Drupal\admin_toolbar_tools\Plugin\Derivative\ExtraLinks->getDerivativeDefinitions(Array) (Line: 101)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDerivatives(Array) (Line: 87)
Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions() (Line: 164)
Drupal\Core\Menu\MenuLinkManager->getDefinitions() (Line: 189)
Drupal\Core\Menu\MenuLinkManager->rebuild() (Line: 61)
admin_toolbar_tools_entity_insert(Object, 'message_template')
call_user_func_array('admin_toolbar_tools_entity_insert', Array) (Line: 403)
Drupal\Core\Extension\ModuleHandler->invokeAll('entity_insert', Array) (Line: 349)
Drupal\Core\Config\Entity\ConfigEntityStorage->invokeHook('insert', Object) (Line: 535)
Drupal\Core\Entity\EntityStorageBase->doPostSave(Object, ) (Line: 460)
Drupal\Core\Entity\EntityStorageBase->save(Object) (Line: 263)
Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object) (Line: 395)
Drupal\Core\Entity\EntityBase->save() (Line: 616)
Drupal\Core\Config\Entity\ConfigEntityBase->save() (Line: 371)
Drupal\Core\Config\ConfigInstaller->createConfiguration('', Array, 1) (Line: 246)
Drupal\Core\Config\ConfigInstaller->installOptionalConfig(Object, '') (Line: 150)
Drupal\Core\Config\ConfigInstaller->installDefaultConfig('module', 'message_example') (Line: 75)
Drupal\Core\ProxyClass\Config\ConfigInstaller->installDefaultConfig('module', 'message_example') (Line: 287)
Drupal\Core\Extension\ModuleInstaller->install(Array, 1) (Line: 83)
Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array) (Line: 458)
Drupal\system\Form\ModulesListForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 593)
Drupal\Core\Form\FormBuilder->processForm('system_modules', Array, Object) (Line: 321)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 91)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
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: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
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: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
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: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

πŸ’¬ Support request
Status

Postponed: needs info

Version

1.2

Component

User interface

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 bluegeek9

    @esQmo,

    Did you find the cause of the issue? The error message is from 'Drupal\og\Plugin\Derivative\OgLocalTask'. Maybe you should post this issue to the Organic Groups project.

    I see you are installing the message_example module. Does it work without the message_example module?

    Drupal\Core\Config\ConfigInstaller->installDefaultConfig('module', 'message_example') (Line: 75)
    
  • πŸ‡ΊπŸ‡ΈUnited States bluegeek9
Production build 0.69.0 2024