Fix an error: 'Twig\Error\SyntaxError: Unknown "spaceless" tag.' in Twig\Parser->subparse()

Created on 30 September 2023, 9 months ago
Updated 6 October 2023, 9 months ago

Problem/Motivation

Fix an error: Twig\Error\SyntaxError: Unknown "spaceless" tag. in Twig\Parser->subparse()

Steps to reproduce

Set admin theme as Industrial Zymphonies Theme

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Needs review

Version

3.0

Component

User interface

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia roshni27

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

Comments & Activities

  • Issue created by @roshni27
  • Status changed to Needs review 9 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia roshni27

    Please review the patch.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Jay Jangid

    Hi @roshnichordiya,

    I've tested this issue in Drupal 10.1.x, and I haven't encountered any issues related to theme installation.
    I couldn't replicate the reported problem.

    Here are the steps I followed:

    1. Installed the theme using the git command.
    2. Made necessary adjustments for Drupal 10 compatibility.
    3. Checked for any potential issues after theme installation.
    4. Confirmed that the theme was successfully installed.

    If I missed any steps, please inform me and provide instructions on how to reproduce this issue.
    I am sharing screenshot ,please check.
    Thank you.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia sarwan

    sarwan_verma โ†’ made their first commit to this issueโ€™s fork.

  • @sarwan_verma opened merge request.
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia roshni27

    @sarwan_sharma please provide interdiff and this issue only for twig API errors.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia roshni27

    @jay jangid install theme in drupal 10 and php 8.1
    set admin theme as Industrial Zymphonies Theme.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia roshni27
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia roshni27
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Jay Jangid

    @roshnichordiya, Thanks for your guidance.
    Now I am able to reproduce this issue in Drupal 10 when set as the admin theme.
    after setting this theme, It displayed the error mentioned above.
    However, after applying your patch, the error was successfully resolved.
    Now, the theme has been installed successfully.
    I'm sharing a screenshot for your reference.
    Thank you.

Production build 0.69.0 2024