- Issue created by @SirClickALot
- πΊπΈUnited States bwong
This looks like a missing dependency with Twig Tweak that 1.3 should address.
- Assigned to bwong
- Status changed to Fixed
over 1 year ago 12:50am 2 June 2023
I have installed v1.02 and placed the (nextviewsentityreferenceblock) block
I have configured the block to use an Entity Reference view that I know does take and argument
However, what I see at the point where the block should render is as follows...
Twig\Error\SyntaxError: Unknown "drupal_view" function. in Twig\ExpressionParser->getFunctionNodeClass() (line 20 of modules\contrib\next_views_entity_reference\templates\next-entity-reference-view-block.html.twig).
Twig\ExpressionParser->getFunctionNodeClass('drupal_view', 20) (Line: 460)
Twig\ExpressionParser->getFunctionNode('drupal_view', 20) (Line: 235)
Twig\ExpressionParser->parsePrimaryExpression() (Line: 175)
Twig\ExpressionParser->getPrimary() (Line: 70)
Twig\ExpressionParser->parseExpression() (Line: 141)
Twig\Parser->subparse(Array) (Line: 39)
Twig\TokenParser\IfTokenParser->parse(Object) (Line: 184)
Twig\Parser->subparse(NULL, ) (Line: 97)
Twig\Parser->parse(Object) (Line: 562)
Twig\Environment->parse(Object) (Line: 594)
Twig\Environment->compileSource(Object) (Line: 131)
Drupal\Core\Template\TwigEnvironment->compileSource(Object) (Line: 408)
Twig\Environment->loadClass('__TwigTemplate_a64f955b424a9c6619997966c2b43f00', 'modules/contrib/next_views_entity_reference/templates/next-entity-reference-view-block.html.twig', NULL) (Line: 381)
Twig\Environment->loadTemplate('modules/contrib/next_views_entity_reference/templates/next-entity-reference-view-block.html.twig') (Line: 55)
twig_render_template('modules/contrib/next_views_entity_reference/templates/next-entity-reference-view-block.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('next_entity_reference_view_block', 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: 82)
__TwigTemplate_88661b6fcc9fe2312388e82eb8c065c3->block_content(Array, Array) (Line: 182)
Twig\Template->displayBlock('content', Array, Array) (Line: 69)
__TwigTemplate_88661b6fcc9fe2312388e82eb8c065c3->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/contrib/bootstrap/templates/block/block.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('block', Array) (Line: 433)
Drupal\Core\Render\Renderer->doRender(Array, 1) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, 1) (Line: 160)
Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 161)
Drupal\Core\Render\Renderer->renderPlain(Array) (Line: 175)
Drupal\Core\Render\Renderer->renderPlaceholder('callback=Drupal%5Cblock%5CBlockViewBuilder%3A%3AlazyBuilder&args%5B0%5D=nextviewsentityreferenceblock&args%5B1%5D=full&args%5B2%5D&token=OivW647aYsPL9mA32rNpfb8Zz55S54In-kVSXFo4kxc', Array) (Line: 693)
Drupal\big_pipe\Render\BigPipe->renderPlaceholder('callback=Drupal%5Cblock%5CBlockViewBuilder%3A%3AlazyBuilder&args%5B0%5D=nextviewsentityreferenceblock&args%5B1%5D=full&args%5B2%5D&token=OivW647aYsPL9mA32rNpfb8Zz55S54In-kVSXFo4kxc', Array) (Line: 547)
Drupal\big_pipe\Render\BigPipe->sendPlaceholders(Array, Array, Object) (Line: 305)
Drupal\big_pipe\Render\BigPipe->sendContent(Object) (Line: 112)
Drupal\big_pipe\Render\BigPipeResponse->sendContent() (Line: 381)
Symfony\Component\HttpFoundation\Response->send() (Line: 20)
As far as I can see, the module template (next-entity-reference-view-block.html.twig
) appears to be looking for a View with id:toc but I do not know here that should come from?
Fixed
1.2
Miscellaneous
This looks like a missing dependency with Twig Tweak that 1.3 should address.