(Using Moodle 1.5)
When adding a RSS feed in Add/Edit Feeds the URL validates ok but Moodle gives an error message "There was an error loading this rss feed"
If I ignore this and proceed I get the error message "Warning: Invalid argument supplied for foreach() in /var/www/html/moodledev/blocks/rss_client/block_rss_client.php on line 187" above the block on the course page
Could it be anything to do with the College firewall or proxy server?
1) The problem remains
2) The line number of the problem in the latest code
Also if possible please post the feed that you are trying to add when you get this error.
Warning: Invalid argument supplied for foreach() in /var/www/html/moodledev/blocks/rss_client/block_rss_client.php on line 201
The feed I'm trying to add is http://rss.news.yahoo.com/rss/topstories
I now seem to be getting a new error when I click on Add/Edit Feeds on the "Configuring a Remote RSS Feeds block" page:
Fatal error: Call to undefined function: rss_get_form() in /var/www/html/moodledev/blocks/rss_client/config_instance.html on line 159
Call to undefined function: rss_get_form
Regarding the rss_get_form error you'll need to also update your moodle/lib/rsslib.php file to the latest version as well.
I also run 1.4 on the same computer with the old rss feed block and there is no problem with this.
The message I get with 1.5 is
There was an error trying to add a new rss feed:http://news.bbc.co.uk/rss/newsonline_world_edition/science/nature/rss.xm
I have just uploaded the latest files and still no change
I have updated the rss_client files to give me more information on what is happening since I cannot reproduce these problems. Please turn debugging on in your site with the latest rss_client code from CVS HEAD and share the results.
Thanks for the help
I have put in the latest code from cvs head and enabled debug.
This is what I get-
Table 'dogscien_newmood.mdl_block_rss_client' doesn't exist
SELECT * FROM mdl_block_rss_client ORDER BY title
I also get this on the front page - different problem
Notice: Undefined property: footer in /home/dogscien/public_html/moodle/blocks/moodleblock.class.php on line 215
I updated this one as well to 1.49
the line it refers to -
print_side_block($this->_title_html(), $this->content->text, NULL, NULL, $this->content->footer, $this->html_attributes());
fixed the rss feed problem by adding the required table.
Don't know about the other problem though.