shs_chosen not work with drupal 8.9.13

Created on 29 January 2021, over 3 years ago
Updated 3 August 2024, about 2 months ago

Problem/Motivation

shs_chosen not work with drupal 8.9.13

Steps to reproduce

Update Drupal from 8.9.1 to drupal 8.9.13

Errors

The website encountered an unexpected error. Please try again later.
ArgumentCountError: Too few arguments to function Drupal\taxonomy\Plugin\views\filter\TaxonomyIndexTid::__construct(), 3 passed in /home/ligul/public_html/usedcars/modules/shs/modules/shs_chosen/src/Plugin/views/filter/ShsChosenTaxonomyIndexTidDepth.php on line 40 and at least 5 expected in Drupal\taxonomy\Plugin\views\filter\TaxonomyIndexTid->__construct() (line 65 of core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php).
Drupal\taxonomy\Plugin\views\filter\TaxonomyIndexTid->__construct(Array, 'shs_chosen_taxonomy_index_tid_depth', Array) (Line: 40)
Drupal\shs_chosen\Plugin\views\filter\ShsChosenTaxonomyIndexTidDepth->__construct(Array, 'shs_chosen_taxonomy_index_tid_depth', Array, Object) (Line: 51)
Drupal\shs_chosen\Plugin\views\filter\ShsChosenTaxonomyIndexTidDepth::create(Object, Array, 'shs_chosen_taxonomy_index_tid_depth', Array) (Line: 21)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('shs_chosen_taxonomy_index_tid_depth', Array) (Line: 76)
Drupal\Component\Plugin\PluginManagerBase->createInstance('shs_chosen_taxonomy_index_tid_depth', Array) (Line: 121)
Drupal\views\Plugin\ViewsHandlerManager->createInstance('shs_chosen_taxonomy_index_tid_depth', Array) (Line: 106)
Drupal\views\Plugin\ViewsHandlerManager->getHandler(Array, NULL) (Line: 889)
Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers('filter') (Line: 1040)
Drupal\views\ViewExecutable->_initHandler('filter', Array) (Line: 898)
Drupal\views\ViewExecutable->initHandlers() (Line: 2335)
Drupal\views\Plugin\views\display\DisplayPluginBase->preExecute() (Line: 1692)
Drupal\views\ViewExecutable->preExecute(Array) (Line: 1627)
Drupal\views\ViewExecutable->executeDisplay('page_1', Array) (Line: 77)
Drupal\views\Element\View::preRenderViewElement(Array)
call_user_func_array(Array, Array) (Line: 100)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. Support for this callback implementation is deprecated in 8.8.0 and will be removed in Drupal 9.0.0. See https://www.drupal.org/node/2966725 β†’ ', 'silenced_deprecation', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 781)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 372)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 200)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 226)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 227)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object) (Line: 156)
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: 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)

Regards
Andrew

πŸ› Bug report
Status

Closed: won't fix

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Ordasoft

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.

Production build 0.71.5 2024