Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: RSS Feed broken
Three questions:
Can you give a link to that RSS feed? Perhaps it’s not a BOM but something else.
Is the website hosted on a windows server or Linux/*NIX server?
If Linux/*NIX, do you have shell access?
Offline
#14 2008-04-27 17:36:05
- FireFusion
- Member
- Registered: 2005-05-10
- Posts: 698
Re: RSS Feed broken
Answers in your email
Offline
Re: RSS Feed broken
Problem found.
When I request your RSS feed and set my browser to accept only non-compressed pages, it displays fine.
However, when my browser accepts gzip-compressed pages, something very very strange happens. The page is compressed twice instead of just once. Similar to when you ZIP a file and than put the resulting ZIP file into another ZIP archive. When you uncompress it once, you still have a compressed file.
TXP can compress feeds, but so can PHP and the Apache webserver. I suspect the latter two both are compressing the RSS feed. Try disabling gzip compression in PHP by setting this in php.ini (if zlib.output_compression is already listed and set to On, simply change it to Off):
zlib.output_compression = Off
And if that doesn’t work, try this:
zlib.output_compression = 0
Last edited by ruud (2008-04-27 18:56:51)
Offline
#16 2008-04-27 19:14:38
- FireFusion
- Member
- Registered: 2005-05-10
- Posts: 698
Re: RSS Feed broken
Hi Rudd,
extension=zlib.so was uncommented but I re-commented it. Do I need to do anything to get it to reload the php.ini file? I’m editing through virtualmin.
Doesn’t matter it works now!
Thank you!!!
Last edited by FireFusion (2008-04-27 19:21:20)
Offline
Re: RSS Feed broken
Hmm… disabling zlib completely will also make it impossible to use compressed plugins (among other things). Perhaps a better solution would be to either comment out the ob_gzhandler lines in rss.php and atom.php or in the apache server disable compression of RSS/Atom feeds (in the mod_deflate configuration).
Offline
#18 2008-04-27 21:30:43
- FireFusion
- Member
- Registered: 2005-05-10
- Posts: 698
Re: RSS Feed broken
Commenting out extension=zlib.so was the only thing that worked as zlib.output_compression was off.
I’ll see if I can disable compression of RSS/Atom through apache.
Thanks again
Offline