Page 1 of 1

error at the top of page [SOLVED]

Posted: Thu Apr 23, 2009 3:37 pm
by EGS
Some of my pages are getting the following error at the top:

string(114) "Smarty error: [in tpl_body:21 line 78]: syntax error: unrecognized tag 'var' (Smarty_Compiler.class.php, line 590)" string(110) "Smarty error: [in tpl_body:21 line 80]: syntax error: unrecognized tag: (Smarty_Compiler.class.php, line 446)" string(111) "Smarty error: [in tpl_body:21 line 80]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"

It's random pages though...every page in my news module and then a page that I put a menu in on the page's content.
Please help.

Re: Possible Bug?

Posted: Thu Apr 23, 2009 3:58 pm
by tyman00
You likely have something in one of your news templates or menu templates (I couldn't quite decipher your last sentence).

It would be a smarty call that isn't well formed and has "var" in it (hence the "unrecognized tag 'var') part.

In the future please post more information about what you are doing. Just positng the error isn't enough. We need to know version numbers for modules and cmsms. Showing us your templates that are used in the "affected" pages wouldn't hurt either. If you want a well formed and helpful response... your post has to be well formed and helpful as well. Our crystal balls are broken ;) we can't see what you are doing or know what you are thinking ;D


Edit: Please don't automatically label everything as bug. This situation looks to me to be more user error than CMS error.

Re: Possible Bug?

Posted: Thu Apr 23, 2009 4:49 pm
by alby
EGS wrote: It's random pages though...every page in my news module and then a page that I put a menu in on the page's content.
As timann0 say and the README rules, more informations please!
Probably you have a javascript in that page/template. Surround this with {literal} tag.

Alby

Re: Possible Bug?

Posted: Fri Apr 24, 2009 4:48 am
by EGS
Wow! I tried doing the literal thing around my Google Analytics tracking code to see if it would work and it fixed the error!
Amazing! Thanks much & sorry for calling it a bug, I wasn't sure...any error to me is a bug. :P :(

Re: Possible Bug?

Posted: Fri Apr 24, 2009 4:50 am
by tyman00
Glad to see you got it worked out. The problem with calling things bugs that really aren't bugs creates a false negative image for the product.

Re: Possible Bug?

Posted: Fri Apr 24, 2009 9:32 am
by alby
EGS wrote: Wow! I tried doing the literal thing around my Google Analytics tracking code to see if it would work and it fixed the error!
Amazing! Thanks much & sorry for calling it a bug, I wasn't sure...any error to me is a bug. :P :(
Please follow the rules: edit first post and put [SOLVED] in title and re-elaborate title for others
Thank you

Alby