Page 1 of 1

Modified content and now receiving a Smarty error.

Posted: Thu Sep 30, 2010 10:57 pm
by rfrancis
I made a simple content change to the home page of my site and now when I view the public side of the site I all I get is:

string(123) "Smarty error: [in metadata template line 6]: syntax error: unrecognized tag 'literal' (Smarty_Compiler.class.php, line 590)"

The admin side works just fine. I've cleared the cache in the admin control panel, I've deleted file in templates_c.

Not sure what to try next.  The similar problems I see in the forums are related to moving to a new server. Nothing changed other than modifying content.

Thoughts?

Re: Modified content and now receiving a Smarty error.

Posted: Fri Oct 01, 2010 1:43 am
by Dr.CSS
This tells me you may have added {literal} to the content "unrecognized tag 'literal'" most likely it was with tiny on and it was changed to html entities or something along those lines, go back to the page and see what it looks like with tiny on then look with tiny off...

[SOLVED] Modified content and now receiving a Smarty error.

Posted: Fri Oct 01, 2010 2:32 am
by rfrancis
Actually found the solution by checking out my content in the database. I had added some javascript to the metadata using {literal} a long time ago. For some reason when I made my changes to the content for the page a huge chunk of the metadata code was stripped out.

Anyway, fixed now.

Thanks for the help!

Re: Modified content and now receiving a Smarty error.

Posted: Fri Oct 01, 2010 7:58 am
by Dr.CSS