Unable to edit nodes after upgrade to 3.1.22

Created on 4 May 2023, about 1 year ago
Updated 9 August 2023, 11 months ago

Problem/Motivation

After upgrading Permissions by Term from 3.1.21 to 3.1.22 I'm unable to edit nodes. I get the following error:

The website encountered an unexpected error. Please try again later.

Twig\Error\LoaderError: Template "__TwigTemplate_71579a5929b777c048bc3b47bd32d61da9df9f55bd0ddc1f0848d8c57018946c" is not defined. in Twig\Loader\ChainLoader->getCacheKey() (line 98 of /var/www/html/vendor/twig/twig/src/Loader/ChainLoader.php).
Twig\Environment->getTemplateClass('__TwigTemplate_71579a5929b777c048bc3b47bd32d61da9df9f55bd0ddc1f0848d8c57018946c', NULL) (Line: 204)
Drupal\Core\Template\TwigEnvironment->getTemplateClass('__TwigTemplate_71579a5929b777c048bc3b47bd32d61da9df9f55bd0ddc1f0848d8c57018946c') (Line: 381)
Twig\Environment->loadTemplate('__TwigTemplate_71579a5929b777c048bc3b47bd32d61da9df9f55bd0ddc1f0848d8c57018946c', 'modules/contrib/permissions_by_term/src/View/node-details.html.twig') (Line: 90)
Drupal\permissions_by_term\Service\NodeEntityBundleInfo->renderNodeDetails('modules/contrib/permissions_by_term/src/View/node-details.html.twig', 'en', '2') (Line: 353)
permissions_by_term_form_alter(Array, Object, 'node_page_edit_form') (Line: 562)
Drupal\Core\Extension\ModuleHandler->alter('form', Array, Object, 'node_page_edit_form') (Line: 840)
Drupal\Core\Form\FormBuilder->prepareForm('node_page_edit_form', Array, Object) (Line: 284)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
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: 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: 718)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

I'm using Drupal core 9.5.9 and then upgrade Permissions by Term from 3.1.21 to 3.1.22.

πŸ› Bug report
Status

Closed: duplicate

Version

3.1

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom mikee

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

Comments & Activities

Production build 0.69.0 2024