Possible bug v1.3.1 HTML comments cause white screen

Found a bug? Tell us!!
Post Reply
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Possible bug v1.3.1 HTML comments cause white screen

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

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

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post 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.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

We look forward to making new memories with you!
Judebert
---
Website | Wishlist | PayPal
Post Reply