Page 1 of 1

[Solved]Strange {content block} syntax error

Posted: Fri Apr 25, 2014 2:51 am
by jasnick
Using 1.11.10 and latest modules

3 col site: #left, #main and #right.

Template: {content} is in #main
#left has {content block="second_content_block" label ="Left"}
#right has {content block="third_content_block" label ="Right"}

This syntax has always worked for me until now:
Error: at line 302 in file /home/mydomain/public_html/avalon/lib/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php:
Message:
Syntax error in template "content:second_content_block" on line 302 "{mso-style-name:"Table Normal";" - Unexpected ":", expected one of: "}"

I changed the #left to {content block=second_block label="Left"} and it works again. I left #right as it was.

Have no idea what this error message means as there is no ":" in the template. Cleared the cache to no avail.

Can anyone shed any light as to why I get the error message with the {content block="second_content_block" label="Left"} syntax?

Thanks

Re: Strange {content block} syntax error

Posted: Fri Apr 25, 2014 3:14 am
by calguy1000

Code: Select all

Syntax error in template "content:second_content_block" on line 302 "{mso-style-name:"Table Normal";" - Unexpected ":", expected one of: "}"
it's simple.... inside your second_content_block area on that page, at line 302 was an error, it started with: {mso-style-name:"Table Normal";

looks like a paste from word issue.

Re: Strange {content block} syntax error

Posted: Fri Apr 25, 2014 3:28 am
by jasnick
Thanks calguy1000

I thought the error was in the template - didn't think to look at the page. You're probably right - I cut and pasted some Lorem ipsum dolor sit amet, consectetuer adipiscing elit...just to check layout.

I'll remember that! Thanks for the heads up ;)