Page 1 of 1

css loading error

Posted: Wed Mar 30, 2005 3:47 pm
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

Re: css loading error

Posted: Thu Mar 31, 2005 2:17 pm
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

Re: css loading error

Posted: Sat Apr 02, 2005 3:50 pm
by alberto
I already used mod_rewrite and I won't turn it off, because I would google to index my pages...

Re: css loading error

Posted: Sun Apr 03, 2005 2:38 am
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

Posted: Mon Sep 25, 2006 4:50 pm
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...

Posted: Tue Sep 26, 2006 12:03 am
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.

Posted: Sun Oct 01, 2006 10:09 pm
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