- Issue created by @DD 85
- 🇷🇺Russia DD 85
These files are missing from the field_group\templates folder:
field-group-accordion.html.twig
field-group-accordion-item.html.twig
field-group-html-element.html.twig - 🇦🇹Austria maxilein
The website encountered an unexpected error. Try again later.
Twig\Error\LoaderError: Template "modules/contrib/field_group/templates/field-group-html-element.html.twig" is not defined. in Twig\Loader\ChainLoader->getCacheKey() (line 20 of themes/contrib/stable/templates/layout/layout--onecol.html.twig). Twig\Environment->getTemplateClass() (Line: 204) Drupal\Core\Template\TwigEnvironment->getTemplateClass() (Line: 312) Twig\Environment->load() (Line: 39) twig_render_template() (Line: 348) Drupal\Core\Theme\ThemeManager->render() (Line: 536) Drupal\Core\Render\Renderer->doRender() (Line: 493) Drupal\Core\Render\Renderer->doRender() (Line: 493) Drupal\Core\Render\Renderer->doRender() (Line: 493) Drupal\Core\Render\Renderer->doRender() (Line: 493) Drupal\Core\Render\Renderer->doRender() (Line: 240) Drupal\Core\Render\Renderer->render() (Line: 475) Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 52) __TwigTemplate_2db86cbcebdb711e9eb07c946f570656->doDisplay() (Line: 394) Twig\Template->displayWithErrorHandling() (Line: 367) Twig\Template->display() (Line: 379) Twig\Template->render() (Line: 38) Twig\TemplateWrapper->render() (Line: 39) twig_render_template() (Line: 348) Drupal\Core\Theme\ThemeManager->render() (Line: 480) Drupal\Core\Render\Renderer->doRender() (Line: 493) Drupal\Core\Render\Renderer->doRender() (Line: 240) Drupal\Core\Render\Renderer->render() (Line: 238) Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 627) Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 231) Drupal\Core\Render\MainContent\HtmlRenderer->prepare() (Line: 128) Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90) Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray() call_user_func() (Line: 111) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 186) Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76) Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58) Drupal\Core\StackMiddleware\Session->handle() (Line: 48) Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28) Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32) Drupal\big_pipe\StackMiddleware\ContentLength->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: 36) Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51) Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704) Drupal\Core\DrupalKernel->handle() (Line: 19)
- 🇦🇹Austria maxilein
Looks more like a problem with selecting the proper path.
Why would twig files be added to the theme?!
Or has it todo with D10.2.7.
Could this be the problem? - 🇦🇹Austria maxilein
If I set the editing of content to another theme (claro compact) the error looks like this:
Twig\Error\LoaderError: Template "modules/contrib/field_group/templates/field-group-html-element.html.twig" is not defined. in Twig\Loader\ChainLoader->getCacheKey() (line 23 of core/modules/layout_discovery/layouts/onecol/layout--onecol.html.twig). Twig\Environment->getTemplateClass() (Line: 204) Drupal\Core\Template\TwigEnvironment->getTemplateClass() (Line: 312) Twig\Environment->load() (Line: 39) twig_render_template() (Line: 348) Drupal\Core\Theme\ThemeManager->render() (Line: 536) Drupal\Core\Render\Renderer->doRender() (Line: 493) Drupal\Core\Render\Renderer->doRender() (Line: 493) Drupal\Core\Render\Renderer->doRender() (Line: 493) Drupal\Core\Render\Renderer->doRender() (Line: 493) Drupal\Core\Render\Renderer->doRender() (Line: 240) Drupal\Core\Render\Renderer->render() (Line: 475) Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 52) __TwigTemplate_c942cbadb82ae26279449beb948fc9c7->doDisplay() (Line: 394) Twig\Template->displayWithErrorHandling() (Line: 367) Twig\Template->display() (Line: 379) Twig\Template->render() (Line: 38) Twig\TemplateWrapper->render() (Line: 39) twig_render_template() (Line: 348) Drupal\Core\Theme\ThemeManager->render() (Line: 480) Drupal\Core\Render\Renderer->doRender() (Line: 493) Drupal\Core\Render\Renderer->doRender() (Line: 240) Drupal\Core\Render\Renderer->render() (Line: 475) Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 44) __TwigTemplate_aee29571791ddfa1fe525671ed8454f7->doDisplay() (Line: 394) Twig\Template->displayWithErrorHandling() (Line: 367) Twig\Template->display() (Line: 379) Twig\Template->render() (Line: 38) Twig\TemplateWrapper->render() (Line: 39) twig_render_template() (Line: 348) Drupal\Core\Theme\ThemeManager->render() (Line: 480) Drupal\Core\Render\Renderer->doRender() (Line: 240) Drupal\Core\Render\Renderer->render() (Line: 238) Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 627) Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 231) Drupal\Core\Render\MainContent\HtmlRenderer->prepare() (Line: 128) Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90) Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray() call_user_func() (Line: 111) Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 186) Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76) Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58) Drupal\Core\StackMiddleware\Session->handle() (Line: 48) Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28) Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32) Drupal\big_pipe\StackMiddleware\ContentLength->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: 36) Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51) Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704) Drupal\Core\DrupalKernel->handle() (Line: 19)
- 🇦🇹Austria maxilein
Stepping back a few days made the error go away:
composer require drupal/field_group:3.x-dev#eb2167b7
- 3a9153dc committed on 8.x-3.x
#3452325: Re-add field-group-html-element.html.twig
- 3a9153dc committed on 8.x-3.x
- 🇧🇪Belgium nils.destoop
Seems like I accidentally also removed field-group-html-element.html.twig when moving the accordion templates. I re-added the template, sorry for the issue.
Can you check if it's fixed in latest dev? - Status changed to Needs review
6 months ago 7:49pm 6 June 2024 - 🇨🇦Canada dadderley Vancouver
I ran the update
composer require drupal/field_group:3.x-dev#eb2167b7
This solved it for me.If I run this update
composer require 'drupal/field_group:3.x-dev@dev'
Is it the same as the one above?My whole site was WSOD and I am still a little shocked.
- 🇷🇺Russia DD 85
@nils.destoop
The file has appeared, but it is empty.
I am attaching a working template file. - 🇨🇦Canada dadderley Vancouver
On another site, I did the drupal updates a few minutes ago.
I ran
composer require 'drupal/field_group:3.x-dev@dev'
The site was not WSOD, but the edit screens where I use fieldgroup were unusable.This fixed it
composer require drupal/field_group:3.x-dev#eb2167b7
- a33215b8 committed on 8.x-3.x
#3452325: Re-add content of file
- a33215b8 committed on 8.x-3.x
- Status changed to Fixed
6 months ago 6:56am 7 June 2024 Automatically closed - issue fixed for 2 weeks with no activity.