Twig\Error\LoaderError: Template "modules/facets/templates/facets-result-item--checkbox.html.twig" is not defined

Created on 16 February 2023, about 2 years ago

I received the following after upgrading (with no other changes) from 2.0.5 to 2.0.6 on Drupal 9.5.3 then visiting a page with checkbox facets:

Twig\Error\LoaderError: Template "modules/composer/facets/templates/facets-result-item--checkbox.html.twig" is not defined. in Twig\Loader\ChainLoader->getCacheKey() (line 7 of themes/custom/mytheme/templates/page/main.html.twig).
Twig\Environment->getTemplateClass('modules/composer/facets/templates/facets-result-item--checkbox.html.twig', NULL) (Line: 205)
Drupal\Core\Template\TwigEnvironment->getTemplateClass('modules/composer/facets/templates/facets-result-item--checkbox.html.twig') (Line: 381)
Twig\Environment->loadTemplate('modules/composer/facets/templates/facets-result-item--checkbox.html.twig') (Line: 55)
twig_render_template('modules/composer/facets/templates/facets-result-item--checkbox.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('facets_result_item', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 84)
Drupal\facets\Plugin\facets\widget\CheckboxWidget->prepareLink(Object) (Line: 169)
Drupal\facets\Widget\WidgetPluginBase->buildListItems(Object, Object) (Line: 68)
Drupal\facets\Widget\WidgetPluginBase->Drupal\facets\Widget\{closure}(Object)
array_map(Object, Array) (Line: 70)
Drupal\facets\Widget\WidgetPluginBase->build(Object) (Line: 41)
Drupal\facets\Plugin\facets\widget\LinksWidget->build(Object) (Line: 406)
Drupal\facets\FacetManager\DefaultFacetManager->build(Object) (Line: 91)
Drupal\facets\Plugin\Block\FacetBlock->build() (Line: 171)
Drupal\block\BlockViewBuilder::preRender(Array)
call_user_func_array(Array, Array) (Line: 101)
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. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array) (Line: 446)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 581)
Drupal\Core\Template\TwigExtension->renderVar(Array) (Line: 53)
__TwigTemplate_f0a0bac330b248c1cf98d4f56b437ce7->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 132)
__TwigTemplate_e1969fbee1743d8db152c408c5c211b6->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/mytheme/templates/page/page.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('page', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 479)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 141)
__TwigTemplate_a07834a2468105452011f0c7e2c7b86b->doDisplay(Array, Array) (Line: 405)
Twig\Template->displayWithErrorHandling(Array, Array) (Line: 378)
Twig\Template->display(Array) (Line: 390)
Twig\Template->render(Array) (Line: 55)
twig_render_template('themes/custom/mytheme/templates/page/html.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array) (Line: 162)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 163)
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: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
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: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Not sure if you need anything else like configuration information, but let me know.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States webdrips

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

Comments & Activities

Production build 0.71.5 2024