[SOLVED] Smarty Error with News Module

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
jebock
Forum Members
Forum Members
Posts: 11
Joined: Tue Jun 30, 2009 3:23 pm

[SOLVED] Smarty Error with News Module

Post 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
Last edited by jebock on Wed Jul 01, 2009 2:29 am, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Smarty Error with News Module

Post by RonnyK »

I dont know if you changed your search-template, otherwise, you could press the restore-to-default in Search.

Ronny
jebock
Forum Members
Forum Members
Posts: 11
Joined: Tue Jun 30, 2009 3:23 pm

Re: Smarty Error with News Module

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Smarty Error with News Module

Post by RonnyK »

Is the result-page, then another template then the normal pages?

Ronny
jebock
Forum Members
Forum Members
Posts: 11
Joined: Tue Jun 30, 2009 3:23 pm

Re: Smarty Error with News Module

Post 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
Jean le Chauve

Re: Smarty Error with News Module

Post by Jean le Chauve »

Have you tested if you remove this script from your head :
function MM_jumpMenu(targ,selObj,restore)
jebock
Forum Members
Forum Members
Posts: 11
Joined: Tue Jun 30, 2009 3:23 pm

Re: Smarty Error with News Module

Post by jebock »

Looks like that solved it. I had some java script stuff outside of the literal tag. Thank you.

Jason
Post Reply

Return to “CMSMS Core”