[SOLVED] Smarty error with Google Analytics

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
iskanje
Forum Members
Forum Members
Posts: 17
Joined: Mon Oct 08, 2007 8:01 pm

[SOLVED] Smarty error with Google Analytics

Post 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 :)
Last edited by iskanje on Sat Nov 15, 2008 9:04 pm, edited 1 time in total.
alby

Re: Smarty error with Google Analytics

Post 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
iskanje
Forum Members
Forum Members
Posts: 17
Joined: Mon Oct 08, 2007 8:01 pm

[SOLVED] Re: Smarty error with Google Analytics

Post by iskanje »

Great, that helped :D

Thank you!
markus
Forum Members
Forum Members
Posts: 98
Joined: Mon Dec 17, 2007 4:13 pm

Re: [SOLVED] Smarty error with Google Analytics

Post by markus »

great great, thanks.
User avatar
designhut
Forum Members
Forum Members
Posts: 71
Joined: Sat Jul 21, 2007 10:31 am
Location: North Devon

Re: [SOLVED] Smarty error with Google Analytics

Post by designhut »

Perfect thanks.  :)
Post Reply

Return to “CMSMS Core”