Page 1 of 1

Possible bug with smarty-parsing plugin w/ Serendipity 1.0b2

Posted: Mon Apr 10, 2006 5:43 am
by dragon47
I want to use the event plugin for smarty parsing in an entry (Markup: Smarty Parsing). I haven't used it before and I'm using Serendipity v1.0b2.

When I load the plugin, without even putting any smarty code in an entry, I get the following fatal error from Serendipity on trying to go to the blog's home page (I assume the other pages, too):
Fatal error: Smarty error: [in smartymarkupplugin:-626539658 line 12]: syntax error: unrecognized tag: font-family:arial,sans-serif;font-size:12px;color:#000000;padding:0px 1px 5px 0px;white-space:nowrap;font-weight:bold; (Smarty_Compiler.class.php, line 436) in /www/htdocs/serendipity/bundled-libs/Smarty/libs/Smarty.class.php on line 1088
If I delete the Markup: Smarty Parsing plugin, the blog works just fine.

Any thoughts on what I might be doing wrong, or whether it really is a bug?

I've tried it in two different blogs with the same result.

Re: Possible bug with smarty-parsing plugin w/ Serendipity 1

Posted: Mon Apr 10, 2006 11:37 am
by garvinhicking
Hi!

Smarty uses "{" and "}" for its markup. That means, if you want to use Smarty Markup in your entries, you are not allowed to use "{" and "}" in your entries, but need to replace it with "{ldelim}" or "{rdelim}"!

Best regards,
Garvin

Posted: Mon Apr 10, 2006 4:23 pm
by dragon47
Thanks, Garvin.

I bet that's the problem. I'm sure I've got some embedded CSS in the entries -- now to find it!

Posted: Mon Apr 10, 2006 6:19 pm
by dragon47
That was it!

Thanks, Garvin.