Page 1 of 1

getting error need help

Posted: Tue Jun 26, 2007 8:12 am
by tcomics
Hello,

I have edited html template for CMSMS, sometimes, when I am going to my web page I getting this error

string(195) "Smarty error: [in template:20 line 9]: syntax error: unrecognized tag: color: #EF6D00; font-size: 14px; font-family: Verdana, Arial, Helvetica, sans-serif; (Smarty_Compiler.class.php, line 439)" string(110) "Smarty error: [in template:20 line 9]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 583)" string(125) "Smarty error: [in template:20 line 12]: syntax error: unrecognized tag: font-size: 12px (Smarty_Compiler.class.php, line 439)" string(111) "Smarty error: [in template:20 line 12]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 583)" string(124) "Smarty error: [in template:20 line 13]: syntax error: unrecognized tag: color: #009900 (Smarty_Compiler.class.php, line 439)" string(111) "Smarty error: [in template:20 line 13]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 583)" string(124) "Smarty error: [in template:20 line 14]: syntax error: unrecognized tag: color: #CC0000 (Smarty_Compiler.class.php, line 439)" string(111) "Smarty error: [in template:20 line 14]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 583)" string(124) "Smarty error: [in template:20 line 15]: syntax error: unrecognized tag: color: #EF6D00 (Smarty_Compiler.class.php, line 439)" string(111) "Smarty error: [in template:20 line 15]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 583)" string(124) "Smarty error: [in template:20 line 16]: syntax error: unrecognized tag: color: #000000 (Smarty_Compiler.class.php, line 439)" string(111) "Smarty error: [in template:20 line 16]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 583)" string(144) "Smarty error: [in template:20 line 17]: syntax error: unrecognized tag: color: #EF6D00; font-weight: bold; (Smarty_Compiler.class.php, line 439)" string(111) "Smarty error: [in template:20 line 17]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 583)"

When I reload page, error disappear
What I should do?

Re: getting error need help

Posted: Tue Jun 26, 2007 9:18 am
by cyberman
Check template source once again - there must be mistakes.

Normally a CMSms template is "only" a xhtml file with Smarty tags inside. Smarty is CMSms template engine. Smarty tags have { and } as delimiter. On a page call Smarty tries to interpret this tags. There's something inside you template where Smarty think, it has something to interpret.

Re: getting error need help

Posted: Tue Jun 26, 2007 2:57 pm
by climberusa
If you have any { } symbols in the template you need to add {literal} {/literal} around them so smarty doesn't try to parse them. Are you using styles in the head of your document or linking/importing them?