Page 1 of 1

Possible bug v1.3.1 HTML comments cause white screen

Posted: Mon Sep 15, 2008 3:22 pm
by carl_galloway
I've found a curious problem with s9y v1.3.1 when I put html comments for Internet Explorer into index.tpl of any theme, I get a white screen and serendipity refuses to render the page.

The html comment is this;

Code: Select all

  <!--[if lte IE 6]><link href="ie6.css" rel="stylesheet" type="text/css" /><![endif]-->
  <!--[if IE]><style>h3.blogMeta { padding-bottom: 10px; }</style><![endif]-->
I've tested this withnew themes, and old themes and I get the same result every time. Strangely enough regular html comments don't cause the problem, only the comments for versions of IE. Am I doing something wrong or is this a bug?

Re: Possible bug v1.3.1 HTML comments cause white screen

Posted: Mon Sep 15, 2008 3:31 pm
by garvinhicking
Hi!

You must escape { and } in smarty, use {ldelim} and {rdelim} :-)

Your server seems to be configured to not show PHP errors, else you would see the smarty warning.

HTH,
Garvin

Posted: Mon Sep 15, 2008 4:22 pm
by carl_galloway
Ah, that makes sense, and is probably something I should remember, it's embarrassing to forget so much. The good news is that the brain issues seem to be stable for now, the memories are still gone, but I can start to make new memories.

Posted: Tue Sep 16, 2008 2:41 pm
by judebert
We look forward to making new memories with you!