Page 1 of 1
no css in firefox
Posted: Sun Jun 12, 2005 12:05 am
by CapriSkye
one of my friend is having this problem after upgrade from 0.8 to 0.8.1
in firefox, the css is not applied, but in IE it looks okay. here's the blog
http://starryalley.twbbs.org/blog/
anybody know what would cause that?
Re: no css in firefox
Posted: Sun Jun 12, 2005 5:18 am
by garvinhicking
Really funny; if I activate EditCSS extension the Stylesheets magically load!
I suppose this is a firefox CSS bug, maybe because of the different charsets. You should try to file this as a Firefox/Mozilla bug, referring to that URL!
Regards
Garvin
Posted: Sun Jun 12, 2005 10:32 am
by CapriSkye
the weird thing is he is the only having this problem. if it's a bug in firefox, wouldn't that happen to everybody too?
the person told me how he updated from earlier version, and i don't think he's suppose to do it that way. he basically copy and paste mysql's database, and install 0.8.1 without using phpmyadmin's backup.
maybe there's something missing alone the way....
i'll just tell him to reinstall s9y, thanks garvin.
Posted: Mon Jun 13, 2005 1:49 pm
by garvinhicking
But I have the same problem when viewing his blog? And I'm using firefox too...are there any other people using a Serendipity 0.8.1 on the same server?
Regards,
Garvin
Posted: Tue Jun 14, 2005 12:29 am
by CapriSkye
i was just saying that people using 0.8.1 are not having this problem, except the one he's using. maybe it does have something to do with his server.
thanks
Posted: Tue Jun 14, 2005 5:11 am
by MySchizoBuddy
confired doesn't work in firefox 1.0.4
works in Safari 2.0
i'm the one who had this problem
Posted: Tue Aug 02, 2005 9:06 pm
by starryalley
Hello all.
I'm the above-mentioned person who had this problem - serendipity does not show correctly when browsing with firefox. I've tried to file this as a bug of mozilla, but no one has ever took this bug so the status is unknown. However I found this problem keeps hapenning not only with s9y 0.8.2 but also 0.8.1. I also tried to reinstall a serendipity blog with a brand-new mysql database but it failed too. Frankly speaking now I have no idea what the problem is.
Is it due to serendipity? Or apache? Or my server (Ubuntu 5.04) ? Or is it firefox?
Never know...
this problem forces me to use only Konqueror in linux, and IE in windows. It bothers, actually.
Thanks if anybody finds this new reply and read this.
Re: i'm the one who had this problem
Posted: Wed Aug 03, 2005 5:17 pm
by garvinhicking
I have two suggestions to make:
1. Try to disable the browsercompatibility plugin and the sidebarhider plugin. Both emit CSS code that may be responsible for the problem.
2. Your CSS and HTML use the "zh-tw" charset as Content-Type. Maybe the browser does not recognize this as a valid charset. As a workaround please temporarily try to change your language to english or japanese, just to see if with UTF-8 the stylesheet loads okay.
3. The last thing that I recognize as being able to cause the problem is the use of "proxy_html" in your Apache. If you're able to change it, can you temporarily deactivate that module?
Regards,
Garvin
This three ways all failed. @@
Posted: Wed Aug 10, 2005 8:22 am
by starryalley
First, I'd like to say thanks to garvinhicking. But all these suggestions failed. I did 1, then 3, and then 2. No one works so far.
But for point 2, I'd like to ask, how can you know that my HTML and CSS sends data in zh-tw charset? Page source?(there a line reads <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> Isn''t it UTF-8 already?)
Actually in serendipity I set Traditional Chinese (UTF-8 ) as the weblog language. As you taught, I changed it to Janpanese and English. It turned out the same.
Now I point the question to my server with Ubuntu 5.04 installed. I also tried to reinstall apache server with the newest version, also got rid of proxy_html module. It didn't work either. Maybe there has something to do with Ubuntu? But actually I had no idea, just guessing...
Thanks anyway. If this is not the problem of serendipity, I will try to find some time reinstalling my server with a different linux distribution.
starryalley
Re: This three ways all failed. @@
Posted: Wed Aug 10, 2005 2:39 pm
by garvinhicking
I investigated the headers that were emitted by your blog with the FireFox Extension "LiveHTTPHeaders". That one said that the charset was zh-tw.
Right now I cannot connect to your site (timeout) so I can't see what the actual output is now...?
I don't honestly know where to point my fingers to. It is a very curious combination of Apache, Serendipity and Firefox doing something wicked. I only know that it works in other environments, but I can also not exclude Serendipity as a point of failure. Maybe if I can connect back to the site I can do some more tests...did you take it down temporarily?
Regards,
Garvin
Posted: Wed Aug 10, 2005 8:24 pm
by starryalley
Sorry for the temporary "timeout" of my blog. This is due to IP changes while my domain name server hasn't updated it yet.
http://140.116.82.179/blog
this may work now.
Well I actually don't know how to use LiveHTTPHeaders till I post this reply. And Thank you again and please inform me if you got any new idea.
Best regards,
starryalley
Posted: Wed Aug 10, 2005 8:50 pm
by Anthem
The problem is caused by the 'Content-Type'-header of the stylesheet. It is:
Code: Select all
Content-Type: text/css;charset=zh-tw
, you need to change it to
and it'll work.
Now I'm unsure just where that header gets set...
Posted: Wed Aug 10, 2005 9:14 pm
by Anthem
Ok, I got it: Thanks for the phpinfo()

Your php-installation has the configuration option default_charset = zh-tw set. That means php will always send a "Content-Type:charset=..." header.
So to disable this behaviour you can override the configuration directive.
Since it seems to be your server you can just search for the php.ini (probably /usr/local/lib/php.ini, depending on your distribution) and comment the default_charset line out.
But for serendipity we might consider overriding the charset before sending css files.
For example with
at the beginning of serendipity.css.php.
Apparently zh-tw isn't an
official charset, but rather a valid content-language. The correct default charset should be Big5 I guess. In that case it's probably an Ubuntu bug. This might also explain why Firefox ignores the css.
Posted: Thu Aug 11, 2005 12:50 pm
by garvinhicking
Wow, great. This makes sense, Anthem. Thanks for dropping by!
Regards,
Garvin
Posted: Thu Aug 11, 2005 7:48 pm
by starryalley
What a touching moment!
As Anthem told, I added a line to serendipity.css.php
and it finally worked! The greatest is that I finally understood why and don't have to reinstall another OS.
And yes, Ubuntu doesn't support Big5 very well. This is a problem too.
Above all, thank both of you who helped
and ps. Is this line of code neccessary for all circumstances? What if somebody in other country sets another default charset and comes into this same problem? Maybe it is a way to add this line in the next version of s9y?
Truly,
starryalley