Main page doesn't get styled

Having trouble installing serendipity?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi Jeff!

You are right on track about the text/html thing!

BUT in fact serendipity is loading the serendipity.css.php file via include in the index.php script, and that file is setting a header('Content-Type: text/css').

Now, sine this header is not present on your page it means that GoDaddy seems to block or remove custom HTTP headers completely! You are also missing all of the "X-Serendipity" headers! This seems to be the final problem of it all. However s9y needs to be able to set some headers like content-type to properly do some things, or it would lead to errors just like yours.

I'm still surprised though that the admin CSS loads, because it uses the same files. Maybe godaddy is doing some content analysis and thinks that the admin is really CSS because of some keywords?!

Best regards,
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/
smokkinjoe
Posts: 3
Joined: Thu Aug 10, 2006 8:19 pm
Contact:

Post by smokkinjoe »

Well I seem to have found a solution whether or not it is the correct one I don't know, but I have to let the site run scripts and executables for the style to show, without the executable's on the style goes away, as for the username and password that was just a security setting that I hadn't changed.

Joe
jfischer
Posts: 1
Joined: Mon Oct 02, 2006 9:16 pm

Post by jfischer »

I'm fighting with the same thing, and on a hunch I gave this a try in Safari and Internet Explorer as well. Both of those browsers will successfully load the CSS files, even with the wrong content-type and that extra ad block in there.

Firefox and Camino (so probably any Mozilla based browser) choke on the Blog page, but not the admin one. Camino renders the admin page wrong (the head of the page is missing a background gradiant), but for the most part gets it right.

I changed index.tpl in the template I was using to refer directly to it's style.css file, and replaced TEMPLATE_PATH in the css file with the real path, and that's resolved my troubles. 'Cept that I have to do that with whichever template I'm using, but it gets me by until I'm ready to pay for the hosting. :)

Jonathan
Post Reply