Page MenuHomePhabricator

"Error parsing XML and HTML for RSS" - improve and harden Extension:RSS when parsing differently flavoured RSS feeds
Closed, ResolvedPublic

Description

Using MW 1.17 but it doesn't work, not even on mediawiki.org altho {{OnWikimedia}} is used.
Example:
http://www.mediawiki.org/wiki/Extension_talk:RSS#Failed_to_load_RSS_feed


Version: unspecified
Severity: normal
URL: http://www.mediawiki.org/wiki/Extension:RSS

Details

Reference
bz30028

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 11:49 PM
bzimport set Reference to bz30028.

Works for me

http://www.mediawiki.org/wiki/User:Reedy/Test

It's actually a site issue, I'd guess, as I'm guessing the servers won't be able to directly reach the outside world

Which is a site issue, not an extension issue

I don't want to fetch MW feeds, I want the whole interweb! :P

Random RSS feeds: http://www.mediawiki.org/wiki/User:Subfader/RSS None works.

Error parsing XML for RSS
Error fetching URL: connect() timed out!
Error fetching URL: couldn't connect to host

It's not a site issue. It works with an older Extension:RSS version using MagpieRSS.

Epic fail imo.

The configuration is probably not set up with the correct proxy.

Sam,

CommonSettings.php seems to allow $wmgRSSAllowedFeeds, but I can't tell what is in that variable.

In RSS.php at the end, or in your LocalSettings.php after loading the extension via require_once( RSS.php ) you need perhaps to set your proxy through

// Proxy server to use for fetching feeds
$wgRSSProxy = false;

(In reply to comment #2)

Random RSS feeds: http://www.mediawiki.org/wiki/User:Subfader/RSS None works.

Error parsing XML for RSS
Error fetching URL: connect() timed out!
Error fetching URL: couldn't connect to host

It's not a site issue. It works with an older Extension:RSS version using
MagpieRSS.

I check the RSS Feeds on my server, and must admit, that

  • the extension in version 1.8 does not work for all kind and flavours of RSS Feeds
  • your observations are correct
  • comparing the rendering of your feed list on mediawiki.org and on my server, it is apparent, that site issues (time-out settings, proxy) are minor part of the issue, and that
  • the extension still needs to be improved, especially in to avoid "Error parsing XML for RSS"

I change the bug subject to include that.

  • Bug 30658 has been marked as a duplicate of this bug. ***

changed title to include the subject matter of bug30658 .

set to high importance. Yes, it is.

  • Bug 33744 has been marked as a duplicate of this bug. ***

(keep-alive message: I am working on a solution. The problem comes from the XML parser, which fails to render a huge group of non-RSS feeds.)