Page 1 of 1

[SOLVED] Smarty error with Google Analytics

Posted: Sat Nov 15, 2008 7:53 pm
by iskanje
I have set up a CMSMS site livonsaari.fi with mdblue-template, and after adding the site to Google Analytics, I started getting error like this on page load:

string(115) "Smarty error: [in template:20 line 148]: syntax error: unrecognized tag 'var' (Smarty_Compiler.class.php, line 590)" string(111) "Smarty error: [in template:20 line 149]: syntax error: unrecognized tag: (Smarty_Compiler.class.php, line 446)" string(112) "Smarty error: [in template:20 line 149]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"

The error only appears after I modify a page and load it for the first time. At reload, the error does not appear.

If I remove the analytics tracking code from the template, the error does not appear either.

Also, the tracking code does not appear completely at the page source even though it is complete at the page template. The last bit , where there should be the tracker ID, looks like this:


try  catch(err)

Any ideas??

Thanks :)

Re: Smarty error with Google Analytics

Posted: Sat Nov 15, 2008 8:46 pm
by alby
iskanje wrote: I have set up a CMSMS site livonsaari.fi with mdblue-template, and after adding the site to Google Analytics, I started getting error like this on page load:
wrap around your js code with {literal} {/literal}

Alby

[SOLVED] Re: Smarty error with Google Analytics

Posted: Sat Nov 15, 2008 8:52 pm
by iskanje
Great, that helped :D

Thank you!

Re: [SOLVED] Smarty error with Google Analytics

Posted: Tue Mar 03, 2009 10:44 am
by markus
great great, thanks.

Re: [SOLVED] Smarty error with Google Analytics

Posted: Tue Apr 07, 2009 4:08 pm
by designhut
Perfect thanks.  :)