Last modified: 2014-08-22 07:10:01 UTC
This code: <rss max=4 highlight="community wiki foundation">http://blog.wikimedia.org/feed/</rss> Gives this result: Failed to load RSS feed from http://blog.wikimedia.org/feed/: HTTP-forespørgslen fejlede af ukendte årsager. Any ideas? Thanks Jens Roebel
(In reply to Jens Røbel from comment #0) > Gives this result: > > Failed to load RSS feed from http://blog.wikimedia.org/feed/: > HTTP-forespørgslen fejlede af ukendte årsager. Where can this result be seen and how exactly to reproduce? I pasted your one line via "Show Preview" on https://www.mediawiki.org/w/index.php?title=User:AKlapper_(WMF)/Bug69783 and results were as expected.
I assume this is not on a Wikimedia wiki? (Error in particular happens only when using php url_fopen to fetch urls (Not used on Wikimedia sites, since we have the curl php extension installed)). This error generally means that fopen( 'http://blog.wikimedia.org/feed/' ); returned false. I'm not sure why it is doing so in your particular install. I suspect (but am not sure) its a problem with your php.ini configuration.
On line 907 and 909 of includes/HttpFunctions.php there is a wfSuppressWarnings(); and a wfRestoreWarnings(); respectively. Removing both of those may cause a warning to be output (Assuming you have php warnings enabled), that may help you debug the situation.
Please use _latest_ RSS Version from the repo!
Removing wfSuppressWarnings(); and wfRestoreWarnings(); gives the below warning Warning fopen(http://blog.wikimedia.org/feed/): failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond in C:\Apache2.2\htdocs\wiki\includes\HttpFunctions.php on line 916 I have a suspicion that it may be related to limitations in the firewall setup on our network. I will try the same on my private network. The version of RSS extension is 2.25.0 Thanks Jens
The blog recently moved from Wikimedia servers to Automattic ones, so if you had whitelisted the WMF servers, that might need updating?
For test purpose I have the below settings $wgRSSUrlWhitelist = array( "*" );
We use proxy server. Where can I specify name and port ?
So this does not sound like something is wrong in the code of MediaWiki (a so-called "bug"), but instead like a support request (how to change settings, questions how to do something, etc.). As bugzilla.wikimedia.org is only for specific bug reports and enhancement requests, I am closing this ticket as RESOLVED WORKSFORME.
(In reply to Jens Røbel from comment #8) > We use proxy server. Where can I specify name and port ? See [[mw:manual:$wgHTTPProxy]]
Please read the RSS Extension manual page http://www.mediawiki.org/wiki/Extension:RSS#Configuration_settings and quickly find $wgRSSProxy (default: false) Optional proxy server to be used for fetching feeds false: no proxy used See also file RSS.php.
That did it :-) After specifying $wgRSSProxy with proxyservername and portnumber everthing works perfectly. Thanks a lot. Jens
Jens, better always read the documentation first, please. I invested a lot to document all my extensions in the best possible way. Nice to learn that your problem is fixed. Just as a remark: In certain installations (like in my own), it might be necessary to use a proxy when fetching RSS feeds from locations outside an enterprise internet, wherease you must not use a proxy when fetching RSS feeds from Urls inside the intranet. For such cases, a "switch" muss be toggled, see how in the code ! https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FRSS/26b9a910ecafd461097932fd044028655350d389/RSSParser.php#L239 // Example for disabling proxy use for certain urls // $noProxy = preg_match( '!\.internal\.example\.com$!i', parse_url( $url, PHP_URL_HOST ) );