Twig\Error\SyntaxError: Unexpected token "operator" of value

Created on 27 November 2023, almost 2 years ago
Updated 21 December 2023, over 1 year ago

Problem/Motivation

This causes a full 500 Service unavailable and makes the site unusable. The following log entries appear:

Type: php
Message: 	Twig\Error\SyntaxError: Unexpected token "operator" of value "-" ("end of statement block" expected). in Twig\TokenStream->expect() (line 33 of themes/contrib/radix/components/views-view/views-view.twig).
Severity: Error 

Steps to reproduce

Composer to install clean Drupal 10.1.6.
Enable required components (Single Directory Components, Serialization)
Composer to install Radix: composer require 'drupal/radix:^6.0@beta'
Enable the theme and set to default.

Happy to debug on my site if someone wants to lend some guidance on what is needed.

Remaining work

Apply same changes to navbar-brand.twig

🐛 Bug report
Status

Fixed

Version

6.0

Component

Code

Created by

🇺🇸United States Gorf

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024