no css in firefox
no css in firefox
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?
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?
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: no css in firefox
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
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
# 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/
# 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/
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.
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.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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
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/
# 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/
-
MySchizoBuddy
- Regular
- Posts: 340
- Joined: Sun Jun 12, 2005 5:28 am
-
starryalley
- Regular
- Posts: 11
- Joined: Tue Aug 02, 2005 7:08 pm
- Location: Taiwan
- Contact:
i'm the one who had this problem
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.
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.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: i'm the one who had this problem
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
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
# 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/
# 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/
-
starryalley
- Regular
- Posts: 11
- Joined: Tue Aug 02, 2005 7:08 pm
- Location: Taiwan
- Contact:
This three ways all failed. @@
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
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
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: This three ways all failed. @@
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
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
# 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/
# 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/
-
starryalley
- Regular
- Posts: 11
- Joined: Tue Aug 02, 2005 7:08 pm
- Location: Taiwan
- Contact:
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
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
The problem is caused by the 'Content-Type'-header of the stylesheet. It is:, you need to change it to and it'll work.
Now I'm unsure just where that header gets set...
Code: Select all
Content-Type: text/css;charset=zh-twCode: Select all
Content-Type: text/cssNow I'm unsure just where that header gets set...
2b || !2b
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 withat 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.
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
Code: Select all
ini_set('default_charset', '');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.
2b || !2b
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Wow, great. This makes sense, Anthem. Thanks for dropping by! 
Regards,
Garvin
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/
# 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/
-
starryalley
- Regular
- Posts: 11
- Joined: Tue Aug 02, 2005 7:08 pm
- Location: Taiwan
- Contact:
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
As Anthem told, I added a line to serendipity.css.php
Code: Select all
ini_set('default_charset', '');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