Error caused by select.html.twig: Unknown "spaceless" tag

Created on 20 December 2022, about 2 years ago
Updated 23 January 2023, almost 2 years ago

Problem/Motivation

When trying to create a new content node by visiting /node/add/[content_type], Drupal crashes, logging the following message:

Twig\Error\SyntaxError: Unknown "spaceless" tag. in Twig\Parser->subparse() (line 19 of /home/[unix_user]/domains/[domain_name]/drupal/web/themes/contrib/bootstrap_barrio/templates/form/select.html.twig).

Steps to reproduce

  1. Spin up a fresh install of Drupal 10.0.0, using the minimal installation configuration.
  2. Install Bootstrap Barrio 5.5.6 and the SASS Bootstrap Start Kit Subtheme 5.0.6.
  3. Use the shell script included with the SASS subtheme to create a custom subtheme.
  4. Configure a simple content type with a title and body field.
  5. Attempt to create a new content node of that content type. The message "The website encountered an unexpected error. Please try again later." will appear.

Proposed resolution

None.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ’¬ Support request
Status

Closed: works as designed

Version

5.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Daniel Flaum

Live updates comments and jobs are added and updated live.
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