0

I am sorting out issues in a smarty upgrade from 2 to 3 and I am getting this error and I can't figure out why:

Fatal error: Uncaught --> Smarty Compiler: Syntax error in template {$item.content_group_name | htmlspecialchars} - Unexpected "|"

Anyone have any experience with this issue?

Paul T.
  • 4,703
  • 11
  • 25
  • 29
kgrondell
  • 177
  • 2
  • 8

1 Answers1

0

Smarty 3 fails with that error if there is white space around the | character when declaring a modifier. Change your tag to

{$item.content_group_name|htmlspecialchars} 
Rob Ruchte
  • 3,569
  • 1
  • 16
  • 18
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - [From Review](/review/low-quality-posts/27224159) – kk. Sep 23 '20 at 01:19
  • It does answer the question actually, but I will update my answer to be more verbose. – Rob Ruchte Sep 23 '20 at 01:25
  • Thank you. You nailed it. It's funny I had suspected that was the issue but didn't notice in my test the error line number had changed. Cheers! – kgrondell Sep 23 '20 at 12:58