Closed (fixed)
Project:
ImageX Blocks
Version:
1.0.5
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
6 Feb 2024 at 06:16 UTC
Updated:
20 Jun 2025 at 05:35 UTC
Jump to comment: Most recent
After adding a CTA Icons block to layout builder and saving you receive;
Twig\Error\SyntaxError: Unexpected token "name" of value "if" ("end of statement block" expected). in Twig\TokenStream->expect() (line 53 of modules/contrib/ixm_blocks/modules/ixm_blocks_cta_icons/templates/block--ixm-blocks-cta-icons.html.twig).
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
mohd sahzad commentedComment #6
aaronchristian commented@Mohd Unfortunately the MR did not fix the problem.
It actually is due to the foreach and if statement being combined in one statement.
Appreciate the work, but going to close the MR as this have been fixed now in 1.0.x
Comment #7
aaronchristian commentedComment #8
aaronchristian commentedComment #9
aaronchristian commented