"Too few arguments" when using search on the site

Created on 30 January 2023, almost 2 years ago
Updated 24 March 2024, 8 months ago

Hello!

I am having an issue with our site after upgrading from Ubuntu 20.04 to 22.04. Whenever a page that references the fullcalendar_view function is loaded, the site displays an error. With verbose error reporting turned on, we get the below:

The website encountered an unexpected error. Please try again later.
ArgumentCountError: Too few arguments to function Drupal\fullcalendar_view\FullcalendarViewPreprocess::__construct(), 0 passed in /var/www/html/core/lib/Drupal/Component/DependencyInjection/Container.php on line 262 and exactly 4 expected in Drupal\fullcalendar_view\FullcalendarViewPreprocess->__construct() (line 59 of modules/contrib/fullcalendar_view/src/FullcalendarViewPreprocess.php).
Drupal\fullcalendar_view\FullcalendarViewPreprocess->__construct() (Line: 262)
Drupal\Component\DependencyInjection\Container->createService() (Line: 176)
Drupal\Component\DependencyInjection\Container->get() (Line: 197)
Drupal::service() (Line: 16)
template_preprocess_views_view_fullcalendar()
call_user_func_array() (Line: 293)
Drupal\Core\Theme\ThemeManager->render() (Line: 422)
Drupal\Core\Render\Renderer->doRender() (Line: 435)
Drupal\Core\Render\Renderer->doRender() (Line: 201)
Drupal\Core\Render\Renderer->render() (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 110)
__TwigTemplate_cd1a91ed0c8dff6f94c7540821d23fce->doDisplay() (Line: 405)
Twig\Template->displayWithErrorHandling() (Line: 378)
Twig\Template->display() (Line: 390)
Twig\Template->render() (Line: 55)
twig_render_template() (Line: 390)
Drupal\Core\Theme\ThemeManager->render() (Line: 422)
Drupal\Core\Render\Renderer->doRender() (Line: 435)
Drupal\Core\Render\Renderer->doRender() (Line: 201)
Drupal\Core\Render\Renderer->render() (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 98)
__TwigTemplate_0b04bc2fccaac4ee70c71b9bc2276ef7->block_content() (Line: 182)
Twig\Template->displayBlock() (Line: 84)
__TwigTemplate_0b04bc2fccaac4ee70c71b9bc2276ef7->doDisplay() (Line: 405)
Twig\Template->displayWithErrorHandling() (Line: 378)
Twig\Template->display() (Line: 390)
Twig\Template->render() (Line: 55)
twig_render_template() (Line: 390)
Drupal\Core\Theme\ThemeManager->render() (Line: 422)
Drupal\Core\Render\Renderer->doRender() (Line: 435)
Drupal\Core\Render\Renderer->doRender() (Line: 201)
Drupal\Core\Render\Renderer->render() (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 52)
__TwigTemplate_071a05db04b8728b9e33bca8a1a05129->doDisplay() (Line: 405)
Twig\Template->displayWithErrorHandling() (Line: 378)
Twig\Template->display() (Line: 390)
Twig\Template->render() (Line: 55)
twig_render_template() (Line: 390)
Drupal\Core\Theme\ThemeManager->render() (Line: 422)
Drupal\Core\Render\Renderer->doRender() (Line: 435)
Drupal\Core\Render\Renderer->doRender() (Line: 435)
Drupal\Core\Render\Renderer->doRender() (Line: 201)
Drupal\Core\Render\Renderer->render() (Line: 157)
Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() (Line: 564)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 158)
Drupal\Core\Render\Renderer->renderPlain() (Line: 371)
Drupal\node\Plugin\Search\NodeSearch->prepareResults() (Line: 242)
Drupal\node\Plugin\Search\NodeSearch->execute() (Line: 98)
Drupal\search\Plugin\SearchPluginBase->buildResults() (Line: 102)
Drupal\search\Controller\SearchController->view()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 23)
Stack\StackedHttpKernel->handle() (Line: 709)
Drupal\Core\DrupalKernel->handle() (Line: 19)

πŸ› Bug report
Status

Fixed

Version

5.0

Component

Miscellaneous

Created by

πŸ‡¨πŸ‡¦Canada kevin.bruner

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024