Everything worked fine with SHS on Drupal from 8.9.20, but after upgrading to Drupal 9.3.0 the following error does show up:
TypeError: Argument 4 passed to Drupal\shs_chosen\Plugin\views\filter\ShsChosenTaxonomyIndexTid::__construct() must be an instance of Drupal\shs_chosen\Plugin\views\filter\VocabularyStorageInterface, instance of Drupal\taxonomy\VocabularyStorage given, called in /web/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php on line 90 en Drupal\shs_chosen\Plugin\views\filter\ShsChosenTaxonomyIndexTid->__construct() (línea 21 de /web/modules/contrib/shs/modules/shs_chosen/src/Plugin/views/filter/ShsChosenTaxonomyIndexTid.php)
The issue seems related to this one I had when updating SHS to version 2 from Drupal 8.9.
The whole error message does look like that:
#0 /web/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php(90): Drupal\shs_chosen\Plugin\views\filter\ShsChosenTaxonomyIndexTid->__construct(Array, 'taxonomy_index_...', Array, Object(Drupal\taxonomy\VocabularyStorage), Object(Drupal\taxonomy\TermStorage), Object(Drupal\Core\Session\AccountProxy))
#1 /web/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(21): Drupal\taxonomy\Plugin\views\filter\TaxonomyIndexTid::create(Object(Drupal\Core\DependencyInjection\Container), Array, 'taxonomy_index_...', Array)
#2 /web/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(76): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('taxonomy_index_...', Array)
#3 /web/core/modules/views/src/Plugin/ViewsHandlerManager.php(121): Drupal\Component\Plugin\PluginManagerBase->createInstance('taxonomy_index_...', Array)
#4 /web/core/modules/views/src/Plugin/ViewsHandlerManager.php(106): Drupal\views\Plugin\ViewsHandlerManager->createInstance('taxonomy_index_...', Array)
#5 /web/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(889): Drupal\views\Plugin\ViewsHandlerManager->getHandler(Array, NULL)
#6 /web/core/modules/views/src/ViewExecutable.php(1040): Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers('filter')
#7 /web/core/modules/views/src/ViewExecutable.php(898): Drupal\views\ViewExecutable->_initHandler('filter', Array)
#8 /web/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(2319): Drupal\views\ViewExecutable->initHandlers()
#9 /web/core/modules/views/src/ViewExecutable.php(1692): Drupal\views\Plugin\views\display\DisplayPluginBase->preExecute()
#10 /web/core/modules/views/src/ViewExecutable.php(1627): Drupal\views\ViewExecutable->preExecute(Array)
#11 /web/core/modules/views/src/Element/View.php(81): Drupal\views\ViewExecutable->executeDisplay('page_1', Array)
#12 [internal function]: Drupal\views\Element\View::preRenderViewElement(Array)
#13 /web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(101): call_user_func_array(Array, Array)
#14 /web/core/lib/Drupal/Core/Render/Renderer.php(772): Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_ren...', 'exception', 'Drupal\\Core\\Ren...')
#15 /web/core/lib/Drupal/Core/Render/Renderer.php(363): Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array)
#16 /web/core/lib/Drupal/Core/Render/Renderer.php(201): Drupal\Core\Render\Renderer->doRender(Array, false)
#17 /web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(241): Drupal\Core\Render\Renderer->render(Array, false)
#18 /web/core/lib/Drupal/Core/Render/Renderer.php(564): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#19 /web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(242): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#20 /web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(132): Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
#21 /web/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))
#22 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#23 /web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#24 /web/vendor/symfony/http-kernel/HttpKernel.php(163): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view')
#25 /web/vendor/symfony/http-kernel/HttpKernel.php(80): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#26 /web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 /web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 /web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 /web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#30 /web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 /web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 /web/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#33 /web/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#34 /web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#35 {main}
Comments
Comment #2
geraldito commentedThis error is gone after updating to version 2.0.x-dev (updated 9 Nov 2021). Sorry for the noise.
Comment #3
jrochate commented