Page 1 of 1

Upgrading to v1.11 problem displaying site

Posted: Sun Jan 06, 2013 5:45 pm
by Tibs
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

Re: Upgrading to v1.11 problem displaying site

Posted: Sun Jan 06, 2013 5:52 pm
by calguy1000
smarty uses { as a magic character.... to denote the start of a smarty tag
so change:

Code: Select all

<style type="text/css">#idname{display:none;}</style>
to:

Code: Select all

{literal}
<style type="text/css">#idname{display: none;}</style>
{/literal
or:

Code: Select all

<style type="text/css">#idname{ display: none; }</style>
note the spaces

Re: Upgrading to v1.11 problem displaying site

Posted: Tue Jan 08, 2013 6:43 pm
by Tibs
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

Posted: Sun Jan 20, 2013 6:05 pm
by Tibs
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

Re: Upgrading to v1.11 problem displaying site

Posted: Sun Jan 20, 2013 6:34 pm
by Jo Morg
Tibs 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);
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. HTH

Re: Upgrading to v1.11 problem displaying site

Posted: Sun Jan 20, 2013 6:37 pm
by Tibs
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

Posted: Mon Jan 21, 2013 7:45 pm
by Tibs
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

Re: Upgrading to v1.11 problem displaying site

Posted: Thu Jan 31, 2013 8:28 pm
by Dr.CSS
Try removing the ; after display: none...