Page 1 of 1

[SOLVED] Smarty Error with News Module

Posted: Tue Jun 30, 2009 4:16 pm
by jebock
I am running CMSMS 1.54 at www.lasertron.us

We just got the new site up and running and I'm tracking down  some unusual problems.

I send search to a different template using {search resultpage="search"} because my home page has some graphics that I don't want on the search results page. It looks ok, but I get a bunch of smarty errors at the top:


string(114) "Smarty error: [in template:17 line 49]: syntax error: unrecognized tag 'var' (Smarty_Compiler.class.php, line 590)" string(110) "Smarty error: [in template:17 line 50]: syntax error: unrecognized tag: (Smarty_Compiler.class.php, line 446)" string(111) "Smarty error: [in template:17 line 50]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(232) "Smarty error: [in template:17 line 53]: syntax error: unrecognized tag: //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; (Smarty_Compiler.class.php, line 446)" string(111) "Smarty error: [in template:17 line 53]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"

I have seen these errors before (or similar ones) as I was working, but they always went away after the first page build. This one is not going away and my boss noticed it.

Is something wrong? Is something not installed?

Otherwise extremely happy,

Jason Bock
The Laser Tag Guy
www.lasertron.us

Re: Smarty Error with News Module

Posted: Tue Jun 30, 2009 5:07 pm
by RonnyK
I dont know if you changed your search-template, otherwise, you could press the restore-to-default in Search.

Ronny

Re: Smarty Error with News Module

Posted: Tue Jun 30, 2009 5:11 pm
by jebock
This doesn't have anything to do with the search template itself. This has to do with the template of the page on which results are listed. I have never fiddled with the search templates at all. I did try what you recommended and it didn't change the smarty errors at the top.

J

Re: Smarty Error with News Module

Posted: Tue Jun 30, 2009 10:08 pm
by RonnyK
Is the result-page, then another template then the normal pages?

Ronny

Re: Smarty Error with News Module

Posted: Tue Jun 30, 2009 10:42 pm
by jebock
No, the result page is my standard template. My home page has a different template and I don't want the search results to show up on the home page's template. The search page is just a standard page on my site with the same template as almost every other page.

J

Re: Smarty Error with News Module

Posted: Tue Jun 30, 2009 10:58 pm
by Jean le Chauve
Have you tested if you remove this script from your head :
function MM_jumpMenu(targ,selObj,restore)

Re: Smarty Error with News Module

Posted: Wed Jul 01, 2009 1:08 am
by jebock
Looks like that solved it. I had some java script stuff outside of the literal tag. Thank you.

Jason