Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-09-11 10:03:45

skinnylatte
Member
Registered: 2004-10-04
Posts: 13

Feed Weirdness

I’m on Textpattern 4.01, but ever since I started using 4.0 I’ve been having the following issue with feed – at mydomain.com/?rss=1 syncing to a feedburner URI:

This page contains the following errors:

error on line 1 at column 1: Extra content at the end of the document
Below is a rendering of the page up to the first error.

Either that, or I get a time out error. I have ensured that my feed is valid, and all that.

Anybody knows what’s up with it?

Offline

#2 2005-09-16 15:58:02

garrettdimon
Member
Registered: 2005-04-12
Posts: 11

Re: Feed Weirdness

I’ve been having htis same problem as well. I’ve been using the url www.site.com/rss/, but I still constantly have problems with my feed syncing. Enough that I’m receiving at least a couple of e-mails per week from people asking about it.

Offline

#3 2005-09-16 16:41:26

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: Feed Weirdness

Yeah, I think there is a problem there somewhere. I have gotten the same problem from within Sharpreader for a couple hundred revisions (I’m on 4.0.1), where it’ll just say “Error parsing RSS XML: Not a valid xml document: The root element is missing.” I’ll have to refresh the feed two or three times and then it’ll load properly. This goes for both rss and atom.

I thought that this issue and this revision would take care of it. And while it did fix the problems in viewing sites in a web browser, it didn’t do anything to help the feedreader problems.

Last edited by Andrew (2005-09-16 16:44:00)

Offline

#4 2005-09-16 16:56:28

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: Feed Weirdness

I see this behaviour on a few other sites that I know are also using newer versions of Textpattern, for instance all in the <head>, kusor.net, ferrydust.com, d.sankey.ca, among others. It doesn’t appear to be a bug in SharpReader either, as — out of 100+ feeds — I only see this behaviour in sites running newer versions of Textpattern.

Last edited by Andrew (2005-09-16 16:57:26)

Offline

#5 2005-09-16 17:39:43

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Feed Weirdness

I am working on a fix. Your cues were helpful.

It appears that 304 not modified is not working correctly on some systems. If it is any consolation, it only happens when the feed has not changed and the client already has the most updated version. Looks like this problem is not 4.0.1 specific, but has been around for a long time (but not detected since it only happens on some systems).

Offline

#6 2005-09-16 17:50:45

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: Feed Weirdness

Right on – thx S.

Offline

#7 2005-09-16 18:56:25

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: Feed Weirdness

btw. my feeds (atom & rss) do not work for firefox ext. SAGE, having problem with feeds on other aggregators as well.
I use a correct rss.php (rss v. 2.0) now. you can get it from here

Offline

#8 2005-09-16 19:28:17

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: Feed Weirdness

Alexandra, I think that problem may be something else (not sure what, though) because your feed behaves correctly in SharpReader edit: but I could be mistaken. Coincidentally, all those sites listed above (including mine) are hosted at TextDrive.

Last edited by Andrew (2005-09-16 19:28:46)

Offline

#9 2005-09-16 19:35:49

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Feed Weirdness

> all those sites listed above (including mine) are hosted at TextDrive.

Yeah, it has to with PHP running as (Fast)CGI.
If – and only if – you are having this problem, change

<code>header(“HTTP/1.1 304 Not Modified”);</code>

to

<code>header(“Status: 304 Not Modified”);</code>

in both rss.php and atom.php. If you don’t have the problem, but make this change, you will introduce the problem. Alternatively be a little patient, until I’ve had time to test and change a couple more things, and I’ll roll out a general patch on the weblog in the next 48 hours (hopefully).

Offline

#10 2005-09-16 19:53:02

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: Feed Weirdness

Ah yes, the ol’ fastcgi thing creeping up again. Yes, that did the trick. Thanks again, S.

Offline

#11 2005-09-17 03:20:04

garrettdimon
Member
Registered: 2005-04-12
Posts: 11

Re: Feed Weirdness

Great! Thanks for the quick response. Everything appears to be running smoothly for me again.

Offline

#12 2005-09-17 13:11:04

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Feed Weirdness

Please test out these files:

http://textpattern.com/file_download/6 (atom.php)
edit: http://textpattern.com/file_download/8 (rss.php) updated

Besides the quick-patch above, this also fixes a more obscure bug that could (theoretically) surface. Tell me if it works without problems, so I can announce it on the weblog.

Thanks.

Last edited by Sencer (2005-10-11 22:01:40)

Offline

Board footer

Powered by FluxBB