Extension talk:RSS/LQT Archive 1

how to use the Extension
Hi, I'm new in using the extensions and I don't Know where to put the code " http://rss.slashdot.org/Slashdot/slashdot|charset=UTF-8|short|date|max=5 ". I've installed the extension but do't know how to use. really I did't understand the example, also i got "This is not a valid entry point." when i call rss.php from my browser window>

any one help please, Thanx. --Gerges 11:52, 31 August 2009 (UTC)

Create a blog with agregated content
Hi, on Design Platform we would like to make a page that agregate the updates from different blogs. Currently we use this extension and display the titles for each blog. Well... The section is becomming huge. What we would like to do is like a blog with would display the news (first part of the text) from each blog article in order. Do you think it is possible someaway ? Thanks ! --Thibho 23:37, 10 July 2009 (UTC)

Cannot modify header information
I installed the RSS Extension and if I want to use it, I get the error: Warning: Cannot modify header information - headers already sent by (output started at/kunden /140041_45136/cr-eu/start/ticopedia/extensions/rss.php:1) in /kunden/140041_45136/cr-eu/start /ticopedia/includes/WebResponse.php on line 10

I use Mediawiki-Version 1.13 (www.ticopedia.de)

What should I do ? What I have to change in teh rss.php or in the webResponse.php ?? --88.78.37.161 17:27, 30 November 2008 (UTC)

Incompatibility with MW 1.12
Hi all, I have an incompatibility using this plugin, it produces a SQL DB error... It says that the table mw_cur doesn't exist. OK, it was the fix that I did not applied correctly...--Rmatt 14:45, 28 March 2008 (UTC)

Internationalisation problems
When I try to read a feed on french, UTF-8 encoded, I have a problem. If I add the parameter charset=UTF-8 the text is cutten after the first exotic character (é, à...) and the rest of the text do not appear.

If I remove this parameter theses characters all well processed, but the apostrophs (') are replaced by (?). Any ideas ? I did not install any additional iconv library.

Misformatted text
I'm not sure if it's rss.php or the Magpie parser at fault, but RSS feeds with embedded &lt;pre&gt;&hellip;&lt;/pre&gt; tags are not displayed properly. All the newlines are stripped out and replaced with spaces, which ruins the formatting. &mdash;Psychonaut 14:23, 7 April 2008 (UTC)

Notitle
Hi, great work, however I miss "notitle" option when showing RSS feed. I have pages where I define RSS feed and pages where I show various feeds. Always showing source of RSS feed (name of the site + mediawiki page) is really annoying. It would be great if "notitle" option is inclueded into next ver.

--89.212.65.33 09:35, 14 April 2008 (UTC)

Formatting of feeds
This is a great extension but for some reason I can't seem to get my wordpress feed to work. I'm using a wordpress category feed http://ehealth.oerc.ox.ac.uk/?feed=rss2&cat=3. is this formatting no good for your extension. I'm getting the failure message.

Text Editors
I tried using nano to create the rss.php and the extension just won't work! Using Vi did the trick. --202.52.76.99 02:33, 5 June 2008 (UTC)

XML
how can i add a feed like this: http://www.asdfasdfasd.com/news/feed.xml? Bennylin 04:00, 7 June 2008 (UTC)

Chinese language Feed Problem
When I used it to read a Chinese Simplified Language Feed (the charset is UTF-8) It doesn't work. What I saw are NOT normal words

Update: This Problem is resoloved. Just add a line to rss.php : define('MAGPIE_OUTPUT_ENCODING', 'UTF-8');

Proposed Patch (error handling)
sometimes, feeds aren't as clean as they should be. the rss extension was throwing php errors at me, so I added some checks to make sure we have the feed (and date in it) correctly from magpie:

Help?

 * I have been having trouble getting this patch to work. It was clear where to put the bit after feed fetch, but this 'after line 138' isn't as obvious. Is that line 138 before or after adding the code at line 108? Could someone specify the code above and below where you insert this patch? - Helen

I can't get the parameters to work.
On my wiki site the RSS works, but I cannot get the "max=5" entries to work. I get the error message: "Error: It's not possible to get max=5." The code I'm using is: http://www.webaddress.com|max=5. Please offer suggestions if you have any. Thanks! 169.253.4.21 18:22, 25 September 2008 (UTC)

Using magpie behind a proxy
I have mediawiki 1.4 set up on our intranet behind a proxy server. No matter what I try, I can't get magpie to pull any feeds through our proxy. I've changed the Snoopy.class.inc file to what I *believe* are the appropriate settings, but still I get an error like "Failed to load RSS feed from http://www.mediawiki.org/w/index.php?title=Special:RecentChanges&feed=rss!" A working sample of Snoopy.proxy.inc and/or any other tips to get this working would be very helpful. Thanks!! 20:09, 2 January 2009 (UTC)

Internationalisation problems still yet and with MW 1.14
Hi people,

I have a problem with my french feeds. They are trimmed after every character like é, è, à or even "'".

Furthermore, it is showing a problem as text on the top of the page, which is very odd, showing :

You can check at : FFE-PS Localité:Berlin

Thanks for your support and the great work already done ! --Rmatt 15:39, 1 March 2009 (UTC)

HTML stripped out
I've tried this extension (and several of its predecessors) on a Fedora 9-based MediaWiki 1.13.3 installation. Displaying the short version of a feed is fine, but the long version is consistently stripped of html formatting -- specifically, less-than and greater-than characters are completely stripped out, so the resultant page has things such as "Line one br /Line two" (where the br / should be a break tag).

I'm obviously missing something. Any ideas what? --Chris Tyler 16:26, 2 March 2009 (UTC)

Perhaps, this libxml2 bug? http://bugs.php.net/bug.php?id=45996 --Ashawley 04:45, 22 April 2009 (UTC)

list of Mediawikis having the rss extension installed
MattisManzel 19:58, 10 April 2009 (UTC): I'm looking for a list of Mediawikis with the rss extension installed or a clever query that finds many of them. Somebody knows?

MattisManzel 11:21, 17 April 2009 (UTC): I started one on odd-wiki-hive - 'wiki-net' - Mediawikis with rss extension.

Any way to keep feeds from being cut/trimmed?
Is there any way I can keep text from the feeds from being cut off after a certain number of characters? -Swooshy

Unescape HTML special characters
The HTML entities need to be unescaped. I had better luck with the following patch:

--- rss.php~   2009-04-21 19:57:57.000000000 -0400 +++ rss.php    2009-04-22 02:02:54.000000000 -0400 @@ -151,6 +151,7 @@                #Build description text if desired if ( $item['description'] ) { $text = trim( iconv( $charset, $wgOutputEncoding, $item['description'] ) ); +               $text = html_entity_decode($text); #Avoid pre-tags $text = str_replace( "\r", ' ', $text ); $text = str_replace( "\n", ' ', $text );

Or has something changed? --65.183.152.86 06:18, 22 April 2009 (UTC)

Cache
It's maybe a good idea to add a cache dir. In file rss.php I put after line require_once('extensions/magpierss/rss_fetch.inc'); these two: define('MAGPIE_CACHE_DIR', './rsscache'); define('MAGPIE_CACHE_AGE', 30*60); // 30 minutes

The change permission for the rsscache directory, same as the images directory. By default, on my wiki, it wrote to the ./cache dir which is use by the mediawiki for its filecache.

- 129.194.8.73 18:14, 17 June 2009 (UTC)

License Discussion
If you are one of the authors who edited this extension, please join the discussion about licensing to include it in a Fedora package User_talk:Mutante#RSS_Extension_Licensing. Mutante 23:30, 8 July 2009 (UTC)

Bug: Server logs PHP warnings if upstream rss feed doesn't contain 'date', 'description'
http://blog.illogicopedia.org/feeds/posts/default|short|max=8 is included from a template on the http://illogicopedia.org main page.

As the extension finds no date stamps and no one-paragraph description texts for the individual items in this feed (which appears to be Blogspot-generated), the server log is a mess of PHP warnings:


 * PHP Notice: Undefined index: description in extensions/rss/rss.php on line 127
 * PHP Notice: Undefined index: pubdate in extensions/rss/rss.php on line 187
 * PHP Notice: Undefined index: dc in extensions/rss/rss.php on line 189

The date stamps for each item, if not present, are displayed to the user as "January 1, 1970" if the 'date' option happens to be enabled in wikitext. This is based on the current version (v1.5 of this RSS extension) running under MediaWiki 1.16alpha. --Carlb 21:28, 30 August 2009 (UTC)

Had the same Problem
Confirmed.

Happened to me on:
 * MediaWiki 1.13.3
 * PHP  5.2.10-pl1-gentoo (cgi-fcgi)
 * MySQL 5.0.76-log

I used this solution:
 * http://www.mediawiki.org/wiki/Extension_talk:RSS#Proposed_Patch_.28error_handling.29

Before that i used an even simpler solution, i commented out all lines with pubdate in it as i am no php-coder.

85.179.25.48 12:14, 19 September 2009 (UTC)