Upgraded 0.9 to 0.91 RSS feed not working

Found a bug? Tell us!!
Post Reply
Andyman77
Regular
Posts: 92
Joined: Mon Oct 17, 2005 2:50 pm
Location: London
Contact:

Upgraded 0.9 to 0.91 RSS feed not working

Post 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
Serendipity - Site, finished ;)
Mine that is ... so lots of nonsensical Stuff
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Upgraded 0.9 to 0.91 RSS feed not working

Post 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
# 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/
Andyman77
Regular
Posts: 92
Joined: Mon Oct 17, 2005 2:50 pm
Location: London
Contact:

Post 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...
Serendipity - Site, finished ;)
Mine that is ... so lots of nonsensical Stuff
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
Andyman77
Regular
Posts: 92
Joined: Mon Oct 17, 2005 2:50 pm
Location: London
Contact:

Post by Andyman77 »

Many thanks,

Will be looking forward to Version 1 then... any timeline for when it may be out ?
Serendipity - Site, finished ;)
Mine that is ... so lots of nonsensical Stuff
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
Post Reply