Page 1 of 1
RSS Feed not working with Gzip compression
Posted: Wed Jul 27, 2005 8:26 pm
by Hathor
I have two S9 blogs. One of them (
http://bluemushrooms.com) works just fine with gzip compression turned on in the config panel.
The other one (
http://thehathorlegacy.info) works with compression turned on, BUT the feed comes up invalid with an error of:
#
line 1, column 0: Undefined root element: br [help]
<br />
#
line 2, column 0: XML parsing error: <unknown>:2:0: junk after document element [help]
<b>Warning</b>: ob_start(): output handler 'ob_gzhandler' cannot be used af ...
That's from FeedValidator.org. Any idea what the issue is, or how to fix it? The feed still works in some readers, but not in Bloglines, for example.
Re: RSS Feed not working with Gzip compression
Posted: Thu Jul 28, 2005 3:32 pm
by garvinhicking
Yes, this is a very strange issue with certain Apache/PHP configurations.
The only solution I've yet seen is to disable gzip compression.
Regards,
Garvin
Posted: Thu Jul 28, 2005 7:48 pm
by Hathor
It doesn't make sense, though. I've had the problem with the same blog on three different hosts.
The other blog has also been on 2-3 hosts, and never had the problem. And the new host for the blog that's having the problem is Site5, who has a lot more expertise in setting up their servers than other hosts I've worked with. So I find it hard to imagine it's the hosts and not the S9 install itself.
Could it be anything else causing the problem? What files in the S9 download affect this? Maybe I've done something wrong.
I really want to use compression, because it definitely loads the pages faster.
Posted: Thu Jul 28, 2005 11:58 pm
by garvinhicking
No, you are right, it is a Serendipity problem. But it only shows up in certain configs where PHPs output buffering is globally enabled.
The point is that I am not into the gzip compression think. I for myself think it should be left up to mod_gzip to do this, and not in PHP userscape. Tom Sommer has contributed the gzip compression code and has not yet had time to properly fix it to work in all environments.
If someone has experience with the output buffering, the specific places where Serendipity uses them is in include/functions.inc.php, serendipity_gzCompression() - maybe other function calls are needed?!
Regards,
Garvin
Posted: Fri Jul 29, 2005 12:30 am
by Hathor
Oh, okay. I understand a little better now.

Thanks for explaining.
Posted: Fri Jul 29, 2005 12:41 am
by garvinhicking
I hope we do get the issue fixed, the current method (turning it off) defininetly is only a workaround
Regards,
Garvin
Posted: Fri Jul 29, 2005 7:54 pm
by Hathor
Hey, overall S9 is still yards above any other blogging software I've tried. I'm confident it's just going to keep improving.
