Page 1 of 1
Error appearing at the top of the website
Posted: Tue Apr 07, 2009 12:58 pm
by robinmarek
A CMSMS website I'm working on at the moment (not set up by myself) is running 1.5.2
At the top of every page this error appears, but dissapears when you refresh the page:
string(114) "Smarty error: [in template:27 line 78]: syntax error: unrecognized tag 'var' (Smarty_Compiler.class.php, line 590)" string(110) "Smarty error: [in template:27 line 79]: syntax error: unrecognized tag: (Smarty_Compiler.class.php, line 446)" string(111) "Smarty error: [in template:27 line 79]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
Any ideas?
Re: Error appearing at the top of the website
Posted: Tue Apr 07, 2009 1:18 pm
by uniqu3
Do you have a JavaScript in your Template "template:27 line 78"?
Re: Error appearing at the top of the website
Posted: Tue Apr 07, 2009 1:23 pm
by robinmarek
There are a few javascripts on this site (only 2 of them I put there myself) will try removing them one by one and see which it is.
How can I tell which number a template is?
Re: Error appearing at the top of the website
Posted: Tue Apr 07, 2009 1:30 pm
by uniqu3
To solve the JavaScript Problem put in your Template {literal} your script {/literal}
You can See the Template id at the bottom of the Browser when you mouseover the link of Template.
Re: Error appearing at the top of the website
Posted: Wed Apr 08, 2009 11:22 am
by robinmarek
Yeah I tried putting {literal} {/literal} round the javascripts but doesn't seem to do anything (I always do this on my own templates)
It seems to throw up different errors depending what page I am on
string(114) "Smarty error: [in template:29 line 64]: syntax error: unrecognized tag 'var' (Smarty_Compiler.class.php, line 590)" string(110) "Smarty error: [in template:29 line 65]: syntax error: unrecognized tag: (Smarty_Compiler.class.php, line 446)" string(111) "Smarty error: [in template:29 line 65]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
Re: Error appearing at the top of the website
Posted: Wed Apr 08, 2009 12:52 pm
by alby
robinmarek wrote:
It seems to throw up different errors depending what page I am on
string(114) "Smarty error: [in template:29 line 64]: syntax error: unrecognized tag 'var' (Smarty_Compiler.class.php, line 590)" string(110) "Smarty error: [in template:29 line 65]: syntax error: unrecognized tag: (Smarty_Compiler.class.php, line 446)" string(111) "Smarty error: [in template:29 line 65]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
Look source in template with ID 29
and check if you have some
{ } brackets relative to no-smarty variable
Alby