Page 1 of 1

Upgraded 0.9 to 0.91 RSS feed not working

Posted: Tue Nov 29, 2005 10:51 pm
by Andyman77
Hiya,

Not sure how to fix this one. I have re-uploaded the RSS.php file but I still cannot get the feed to work. I have tested it in FF 1.5 (now released BTW) Opera and I don't get any feed. Though in FF & Opera both show the RSS feed icon in the address bar.

this is the feed URL :
http://www.andyramblings.co.uk/index.ph ... index.rss2

going to the above link in Firefox you should get this error ?

XML Parsing Error: no element found
Location: http://www.andyramblings.co.uk/index.ph ... index.rss2
Line Number 1, Column 1:
^

any help would be nice.

Many thanks,

Andy

Re: Upgraded 0.9 to 0.91 RSS feed not working

Posted: Wed Nov 30, 2005 1:36 pm
by garvinhicking
By calling your feed via "rss.php?version=2.0" I get this:

Code: Select all

XML Parsing Error: junk after document element
Location: http://www.andyramblings.co.uk/rss.php?version=2.0
Line Number 2, Column 1:<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /mounted-storage/home7/sub001/sc13854-AEQJ/www/se/plugins/serendipity_event_phpopentracker/serendipity_event_phpopentracker.php:154) in <b>/mounted-storage/home7/sub001/sc13854-AEQJ/www/se/rss.php</b> on line <b>60</b><br />
^
So inside your phpopentracker plugin there is output where it doesn't belong. Go to that line and remove the print() call in the phpopentracker plugin.

I've just committed a fix for this to CVS, but it might take some time for you to get updated.

Regards,
Garvin

Posted: Wed Nov 30, 2005 1:52 pm
by Andyman77
Again Garvin you have fixed the problem :D

Just one other question with the RSS feeds, how does one limit the number of lines that the RSS feeds out?
Say I don't want the whole entry to be visible on the RSS feed but say the firts paragraph or the first X number of lines...

Posted: Wed Nov 30, 2005 1:54 pm
by garvinhicking
Hi!
Andyman77 wrote:Again Garvin you have fixed the problem :D
:)
Just one other question with the RSS feeds, how does one limit the number of lines that the RSS feeds out?
Say I don't want the whole entry to be visible on the RSS feed but say the firts paragraph or the first X number of lines...
You can't (easily). That is why we have a entry body/extended distinction. The whole entry body is always shown.

With Serendipity 1.0 though you can use Smarty to edit the look of your RSS Feed(s), and also use something like {$entry.body|substr:0:255} if you want. (I don't know the actual syntax though, but that's within the Smarty documentation).

Best regards,
Garvin

Posted: Wed Nov 30, 2005 2:13 pm
by Andyman77
Many thanks,

Will be looking forward to Version 1 then... any timeline for when it may be out ?

Posted: Wed Nov 30, 2005 2:15 pm
by garvinhicking
The current snapshots are very stable and already contain this functionality :)

A final 1.0 release will be out soon. Maybe end of January. This is dependant on http://www.s9y.org/forums/viewtopic.php?t=3668 though :)

Regards,
Garvin