css loading error

Found a bug? Tell us!!
Post Reply
alberto

css loading error

Post by alberto »

hi all

I did install s9y in a LAMP-hosting env, but I have some trouble with css negotiation, that are related to s9y code, imho.
here is what happens.

in s9y templates/default/index.tpl this row aims to load css:

Code: Select all

<link rel="stylesheet" type="text/css" href="{$head_link_stylesheet}" />
but this produces the following in apache2 error logs:
[Wed Mar 30 15:39:45 2005] [error] [client xxx.xxx.xxx.xxx] Negotiation: discovered file(s) matching request: /web/htdocs/www.example.com/home/blog/serendipity.css (None could be negotiated)., referer: http://www.example.com/blog/
It seems that either apache2 need further directives in .htaccess or apache is not compiled/configured to work this way.
I found a workaround that works well, but I hope this will be fixed anyhow. Changing the html as follow, all goes ok:

Code: Select all

<link rel="stylesheet" type="text/css" href="http://www.example.com/blog/index.php?url=/serendipity.css" />
could someone look into this?

thank you
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: css loading error

Post by garvinhicking »

What URL-Rewriting method are you using? Try to set it to "None", as it seems that the URL Redirection on your server does not properly work. Or try mod_rewrite if your server supports it.

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/
alberto

Re: css loading error

Post by alberto »

I already used mod_rewrite and I won't turn it off, because I would google to index my pages...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: css loading error

Post by garvinhicking »

Either your Apache2 or your mod_rewrite module is not properly configured. mod_rewrite works for me here on 3 different machines.

I'm sorry, but I've never seen the error message you're referring to, maybe you can google up what the cause may be.

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/
smoother
Posts: 1
Joined: Mon Sep 25, 2006 1:43 pm

Post by smoother »

I'm new to Serendipity and got the same issue only a few days ago. Here's how i fixed it:

Code: Select all

(1) Rename serendipity.css.php to serendipity_css.php.
(2) In all files provided with Serendipity, replace all references (file inclusions, etc.) to the old file with the renamed one.
(Or just do it like me the easy way and write a small script doing this jobs automatically.)


Since this issue is based on a conflict between (some) Apache (modules) and the file name "serendipity.css.php" my fix should be included in the next release.
Annotation: Older versions of Apache report a problem when "./serendipity.css" is virtually called and "./serendipity.css.php" physically exists. Instead of processing the virtual requests it just writes an entry into error.log. tststs...
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

I'm not sure how this would affect backwards compatibility, which is a big thing to the core developers. If Garvin approves, we'll get it into the repository post haste.
Judebert
---
Website | Wishlist | PayPal
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Renaming that file would create a lot of fuzz. Since it is related to some strange Apache module, I am not really convinced that the hassle with creating caching problems, editing many templates (plus the ones we have no access to!) and having to deal with support questions. Instead, reconfiguring the apache server to deal with those virtual file requests should be the route to go.

Of course I'm also open to any other feedback :)

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/
Post Reply