Hi to all,
i just updated this Modul, to 8.x.1.1 and i get the error below.
The complete Site was unavailiable.

I reversed to Version "menu_trail_by_path 8.x-1.0" and it works.

Thanks to all
mk

TypeError: Argument 7 passed to Drupal\menu_trail_by_path\MenuTrailByPathActiveTrail::__construct() must be an instance of Drupal\Core\Routing\RequestContext, none given, called in /app/core/lib/Drupal/Component/DependencyInjection/Container.php on line 288 in Drupal\menu_trail_by_path\MenuTrailByPathActiveTrail->__construct() (line 51 of /app/modules/menu_trail_by_path/src/MenuTrailByPathActiveTrail.php) #0 /app/core/lib/Drupal/Component/DependencyInjection/Container.php(288): Drupal\menu_trail_by_path\MenuTrailByPathActiveTrail->__construct(Object(Drupal\Core\Menu\MenuLinkManager), Object(Drupal\Core\Routing\CurrentRouteMatch), Object(Drupal\Core\Cache\DatabaseBackend), Object(Drupal\Core\ProxyClass\Lock\DatabaseLockBackend), Object(Drupal\menu_trail_by_path\Path\CurrentPathHelper), Object(Drupal\menu_trail_by_path\Menu\MenuTreeStorageMenuHelper)) #1 /app/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService(Array, 'menu.active_tra...') #2 /app/core/lib/Drupal/Component/DependencyInjection/Container.php(494): Drupal\Component\DependencyInjection\Container->get('menu.active_tra...', 1) #3 /app/core/lib/Drupal/Component/DependencyInjection/Container.php(236): Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) #4 /app/core/lib/Drupal/Component/DependencyInjection/Container.php(177): Drupal\Component\DependencyInjection\Container->createService(Array, 'menu.link_tree') #5 /app/core/modules/system/src/Plugin/Block/SystemMenuBlock.php(67): Drupal\Component\DependencyInjection\Container->get('menu.link_tree') #6 /app/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(21): Drupal\system\Plugin\Block\SystemMenuBlock::create(Object(Drupal\Core\DependencyInjection\Container), Array, 'system_menu_blo...', Array) #7 /app/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(76): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('system_menu_blo...', Array) #8 /app/core/lib/Drupal/Core/Plugin/DefaultSingleLazyPluginCollection.php(65): Drupal\Component\Plugin\PluginManagerBase->createInstance('system_menu_blo...', Array) #9 /app/core/modules/block/src/BlockPluginCollection.php(57): Drupal\Core\Plugin\DefaultSingleLazyPluginCollection->initializePlugin('system_menu_blo...') #10 /app/core/lib/Drupal/Component/Plugin/LazyPluginCollection.php(80): Drupal\block\BlockPluginCollection->initializePlugin('system_menu_blo...') #11 /app/core/modules/block/src/BlockPluginCollection.php(45): Drupal\Component\Plugin\LazyPluginCollection->get('system_menu_blo...') #12 /app/core/modules/block/src/Entity/Block.php(135): Drupal\block\BlockPluginCollection->get('system_menu_blo...') #13 /app/core/modules/block/src/BlockAccessControlHandler.php(125): Drupal\block\Entity\Block->getPlugin() #14 /app/core/lib/Drupal/Core/Entity/EntityAccessControlHandler.php(93): Drupal\block\BlockAccessControlHandler->checkAccess(Object(Drupal\block\Entity\Block), 'view', Object(Drupal\Core\Session\AccountProxy)) #15 /app/core/lib/Drupal/Core/Entity/Entity.php(340): Drupal\Core\Entity\EntityAccessControlHandler->access(Object(Drupal\block\Entity\Block), 'view', Object(Drupal\Core\Session\AccountProxy), true) #16 /app/core/modules/block/src/BlockRepository.php(56): Drupal\Core\Entity\Entity->access('view', NULL, true) #17 /app/core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php(137): Drupal\block\BlockRepository->getVisibleBlocksPerRegion(Array) #18 /app/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(259): Drupal\block\Plugin\DisplayVariant\BlockPageVariant->build() #19 /app/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(117): Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch)) #20 /app/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch)) #21 /app/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher)) #22 /app/vendor/symfony/http-kernel/HttpKernel.php(144): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object(Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent)) #23 /app/vendor/symfony/http-kernel/HttpKernel.php(62): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #24 /app/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #25 /app/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #26 /app/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #27 /app/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #28 /app/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #29 /app/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(50): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #30 /app/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #31 /app/core/lib/Drupal/Core/DrupalKernel.php(652): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #32 /app/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #33 {main}.

Comments

mk1000 created an issue. See original summary.

znak’s picture

Status: Active » Postponed

I can't reproduce your problem. Please, write step by step how to reproduce this error.

davy-r’s picture

Assigned: mk1000 » Unassigned
Status: Postponed » Postponed (maintainer needs more info)

Did you clear the cache after installing the update?

davy-r’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Since we didn't get any response I assume that the issue is not reproducible

jncruces’s picture

I´ve experienced this issue too.

After updating Context from 8.x.1 to 8.x.4 Drupal shows these error.

Context (context) 8.x-1.0-alpha1 8.x-4.0-beta2 Installed version not supported

My solution was uninstall Menu Trail by Path and install Context Active Trail