Page 1 of 1

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

Posted: Thu Nov 06, 2008 1:04 pm
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.

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

Posted: Thu Nov 06, 2008 1:22 pm
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

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

Posted: Thu Nov 06, 2008 2:15 pm
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