Hi I am working through the steps to bring my cms site upto date and after upgrading to v1.11 I cannot see my site as I keep getting the following error
ERROR: at line 656 in file /freeola/users/2/3/sr0957032/htdocs/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:
Message:
Syntax Error in template "487db4c109b7272b8949bc554b1e0266cfcd89ef" on line 7 "<style type="text/css">a#vlb{display:none}</style>" - Unexpected ":", expected one of: "}" , " " , ATTR
Any solutions would be most appreciated
Upgrading to v1.11 problem displaying site
-
calguy1000
- Support Guru

- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Upgrading to v1.11 problem displaying site
smarty uses { as a magic character.... to denote the start of a smarty tag
so change:
to:
or:
note the spaces
so change:
Code: Select all
<style type="text/css">#idname{display:none;}</style>Code: Select all
{literal}
<style type="text/css">#idname{display: none;}</style>
{/literalCode: Select all
<style type="text/css">#idname{ display: none; }</style>Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Upgrading to v1.11 problem displaying site
Many thanks, I will try this code and will let you know how I get on cheers Tibs
Re: Upgrading to v1.11 problem displaying site
Hi Calguy100
I went onto this file and line 7 all there is a star *
and on line 656 is the text
throw new SmartyCompilerException($error_text);
In the admin area it shows I am running v1.11 but I cannot now view my site just the error
ERROR: at line 656 in file /freeola/users/2/3/sr0957032/htdocs/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:
Syntax Error in template "487db4c109b7272b8949bc554b1e0266cfcd89ef" on line 7 "<style type="text/css">a#vlb{display:none}</style>" - Unexpected ":", expected one of: "}" , " " , ATTR
Any ideas would be most appreciated as I am still a novice cheers Tibs
I went onto this file and line 7 all there is a star *
and on line 656 is the text
throw new SmartyCompilerException($error_text);
In the admin area it shows I am running v1.11 but I cannot now view my site just the error
ERROR: at line 656 in file /freeola/users/2/3/sr0957032/htdocs/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:
Syntax Error in template "487db4c109b7272b8949bc554b1e0266cfcd89ef" on line 7 "<style type="text/css">a#vlb{display:none}</style>" - Unexpected ":", expected one of: "}" , " " , ATTR
Any ideas would be most appreciated as I am still a novice cheers Tibs
Re: Upgrading to v1.11 problem displaying site
Calguy1000's suggestion was NOT to edit that file that was on cache, but the template that you have linked to the page (probably all/most pages). When you go to the admin console of CMSMS, in Content->Pages you can see which Templates are linked to each Pages, and click and edit the templates. THAT'S where the problematic piece of HTML/Smarty is, and where Calguy1000 suggested you should make a change. HTHTibs wrote:I went onto this file and line 7 all there is a star *and on line 656 is the text throw new SmartyCompilerException($error_text);
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Re: Upgrading to v1.11 problem displaying site
Many thanks I will give that a go and let you know how how I got on cheers Tibs
Re: Upgrading to v1.11 problem displaying site
Hi
I tried the template which is Left simple navigation + 1 column on v1.11.4 and could not find this code as above, I then tried different templates as the default and even imported a brand new theme but still keep getting the error below, any ideas?
ERROR: at line 702 in file /freeola/users/2/3/sr0957032/htdocs/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:
Syntax Error in template "487db4c109b7272b8949bc554b1e0266cfcd89ef" on line 7 "<style type="text/css">a#vlb{display:none}</style>" - Unexpected ":", expected one of: "}" , " " , ATTR
I tried the template which is Left simple navigation + 1 column on v1.11.4 and could not find this code as above, I then tried different templates as the default and even imported a brand new theme but still keep getting the error below, any ideas?
ERROR: at line 702 in file /freeola/users/2/3/sr0957032/htdocs/lib/smarty/sysplugins/smarty_internal_templatecompilerbase.php:
Syntax Error in template "487db4c109b7272b8949bc554b1e0266cfcd89ef" on line 7 "<style type="text/css">a#vlb{display:none}</style>" - Unexpected ":", expected one of: "}" , " " , ATTR
Re: Upgrading to v1.11 problem displaying site
Try removing the ; after display: none...



