RSS Feed (block) in 1.5.3+ will not show anything

RSS Feed (block) in 1.5.3+ will not show anything

by Matthew Wheeldon -
Number of replies: 7

Hi,

After reading through these forums i am totally stumped as to why i can not get an RSS feed (block) to show any news items in moodle.

I have set up a feed, validated it tried different ones such as BBC, CNN and others, however nothing shows the page just takes along time to load (timeout?).

Our server is running moodle 1.5.3+ on apache on windows 2003. It sits inside a DMZ and has to use a proxy 10.127.0.2 port 8080 to get to the outside world. The client computers use a different proxy to get to the outside world.

what am i doing wrong?

many thanks

Matt

Average of ratings: -
In reply to Matthew Wheeldon

Re: RSS Feed (block) in 1.5.3+ will not show anything

by Daryl Hawes -
Hello,
Si found the solution to this problem: http://moodle.org/mod/forum/discuss.php?d=30810&parent=162807

There are actually two instances of Snoopy in moodle and neither one of them takes any proxy settings. I've not figured out yet where to get the correct proxy info from moodle to put into the Snoopy class and have it setup automatically.
In reply to Daryl Hawes

Re: RSS Feed (block) in 1.5.3+ will not show anything

by Matthew Wheeldon -

Hi Daryl,

I was missing the second instance, for those others who may have this problem, the files you need to alter are in

/moodle/lib/magpie/extlib/Snoopy.class.inc

/moodle/lib/snoopy/Snoopy.class.inc

you need to alter the following lines :

proxy_host

proxy_port

Is_proxy appears to need to be set to true.

many thanks

Matt

In reply to Matthew Wheeldon

Re: RSS Feed (block) in 1.5.3+ will not show anything

by John Papaioannou -
Maybe it would be a good idea to see if Magpie can use a pre-existing instance of Snoopy (the one we have in /lib/snoopy/). This way we wouldn't have this confusion.

Does anyone know if Magpie supports this?
In reply to John Papaioannou

Re: RSS Feed (block) in 1.5.3+ will not show anything

by Paolo Oprandi -
I have manually set my proxy settings as described but I get the error message:

url not defined for rss feed

..And this is for the BBC news read:

feed://newsrss.bbc.co.uk/rss/newsonline_uk_edition/world/rss.xml

...As well as an in-house RSS feed we have. Anyone else had this error or know why I should get it?
Thanks, Paolo
In reply to Paolo Oprandi

Re: RSS Feed (block) in 1.5.3+ will not show anything

by Daryl Hawes -
Try using http:// instead of feed://
The latest code should convert any instance of feed:// or rss:// to http:// properly but if you're using slightly older code this url type is not supported at all.
Daryl
In reply to John Papaioannou

Re: RSS Feed (block) in 1.5.3+ will not show anything

by Daryl Hawes -
Jon,
Please see bug http://moodle.org/bugs/bug.php?op=show&bugid=4472
I can change the magpie code to refer to the central Snoopy (version 1.2, in magpie version 1.0) but even the main Snoopy class has not been modified to use Proxy settings from moodle.