[solved] RSS-Feeds can't be viewed at all

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
BenD
Regular
Posts: 27
Joined: Mon Mar 24, 2008 11:52 am

[solved] RSS-Feeds can't be viewed at all

Post by BenD »

Hi.

I already took a search across the forum, but the others can load there RSS-feeds, but their browsers aren't able to parse the xml because of extra spaces at the beginning of the file.

MY problem is, that the feeds can't be loaded at all. When trying to load them with FireFox, it tells me they have a corrupted content-encoding, when opening with InternetExplorer, it gives me a "The current page cannot be viewed." and with Notepad (you read right) it tells me that I didn't spell the file correctly.

The links:
http://www.besuchermag.net/feeds/index.rss2
http://www.besuchermag.net/feeds/atom10.xml
http://www.besuchermag.net/feeds/comments.rss2

Any suggestions? Users tell me the feeds don't work since 2 weeks. In this time, I did not change my code, but reduced the number of apache workers, which I think isn't the trigger.
Last edited by BenD on Thu Nov 06, 2008 2:42 pm, edited 2 times in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: RSS-Feeds can't be viewed at all

Post by garvinhicking »

Hi!

Your server somehow is badly using gzip compression. Did you enable gzip compress through s9y, or through some Webserver-thing?

When the .rss2 URL is requested, it seems your webserver is using gzip compresion. If I call http://www.besuchermag.net/rss.php though, it all works properly. Supposedly because your server does not use gzip compression for .php ending URLs. I don't think this is serendipity's doing...

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/
BenD
Regular
Posts: 27
Joined: Mon Mar 24, 2008 11:52 am

Re: RSS-Feeds can't be viewed at all

Post by BenD »

garvinhicking wrote:When the .rss2 URL is requested, it seems your webserver is using gzip compresion. If I call http://www.besuchermag.net/rss.php though, it all works properly. Supposedly because your server does not use gzip compression for .php ending URLs.
Weird... I did not change gzip settings myself servervise. Maybe my server partner tried to do me a favour :D. I'll check that and report. Thanks!

Report 1: Turning off the "gzip compression" in Serendipity's admin panel made the RSS-feeds "work": it shows me the real problem, which is related to a codechange I did to watch my RAM-usage. I will remove that and check again.

Report 2: Mh k, the problem wasn't related to my codechanges. Removed them, but the index.php doesn't affect the rss.php.
However, the first line of the RSS-XML is:

Code: Select all

13303184<?xml version="1.0" encoding="utf-8" ?>
Which is wrong of course. Any guesses what 13303184 could be?

In my .htaccess, the rewrite for feeds is

Code: Select all

RewriteRule ^feeds/(.*) index.php?url=/feeds/$1 [L,QSA]
That has to be the key, I just can't see it there or inside the file.

Report 3: Only RSS2 doesn't function. Atom and RSS2-Comments are fully functional :shock:.
Clearing "templates_c"-Folder did not help.

Report 4: There was no problem at all :roll:. Pressing Strg + F5 once did all the work and RSS2 functions. Just turning off gzip compression fixed everything
Post Reply