Smarty problem with Serendipity 1.4

Due to some feedback on the forums, we were made aware of a bug of the bundled Smarty templating engine that can happen in some PHP environments and lead to PHP warning/error messages.

If this occurs for you, please simply download an updated version of the file bundled-libs/Smarty/libs/Smarty_Compiler.class.php and upload it to your blog directory. Of course we will integrate this update to a future point release of Serendipity.

Trackbacks

Trackback specific URI for this entry

Comments

Display comments as (Linear | Threaded)

AppBeacon on at :

I'm trying to see what Serendipity is like. Unfortunately, the Demo on OpenSourceCMS is broken.

The permissions for Smarty's template_c directory are not set properly.

AppBeacon on at :

Testing threaded comments as well. So far all seems good. Although, submitting a comment on this site does seem to take a long time.

Mandrake on at :

Having tried and loved the new HTML editor I decided to delete the nl2nr event plugin after 4 years of use and relay on Xinha.

There was a undesired side effect, all previous posts (2300+) loosed their line breaks, I forgot the ln2br was real time.

So there's this fix on entries.tpl for anyone having the same issue:

{if $date_nl2br_off > $entry.last_modified}
{$entry.body|nl2br}
{else}
{$entry.body}
{/if}

Where $date_nl2br_off is a unix timestamp with the day the nl2br plugin was deleted.

Same is applied to the extended body.

macdet on at :

thx. thats a cool solution and will help me.

great hands for you!

Add Comment

E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

BBCode format allowed