Moodle

Improve error message when cron hasn't generated RSS feed

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.9.1
  • Fix Version/s: STABLE backlog
  • Component/s: RSS
  • Labels:
    None
  • Environment:
    WAMP + Vista
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_19_STABLE

Description

Activate RSS
Activate RSS for database module
Activate RSS for a datase
Add a database entry
If you visualise the RSS feed, the following error message is: RSS Error - Error reading RSS data

I tried with a forum, I've got the same error.

Activity

Hide
Jerome Mouneyrac added a comment -

I didn't run any cron script (it's why it didn't work). Maybe another message than RSS Error - Error reading RSS data would be good?

Show
Jerome Mouneyrac added a comment - I didn't run any cron script (it's why it didn't work). Maybe another message than RSS Error - Error reading RSS data would be good?
Hide
Dan Poltawski added a comment -

Just bumping fix version so we can target this at next release

Show
Dan Poltawski added a comment - Just bumping fix version so we can target this at next release
Hide
Samuel Witzig added a comment -

We have the same problem with rss-feeds from glossaries.

Show
Samuel Witzig added a comment - We have the same problem with rss-feeds from glossaries.
Hide
Gregor McNish added a comment -

For what it's worth;
We thought we had this problem with glossaries in version 2 RC1, but it turns out we were trying to view the RSS feed as Admin, rather than as an enrolled user.

The glossary rsslib.php (Moodle 2 RC1)
in function glossary_rss_get_feed
there's
if (!is_enrolled($context)) { return null; }

The above is called by rss/file.php:--
if (function_exists($functionname)) { // $pathname will be null if there was a problem (eg user doesn't have the necessary capabilities) // NOTE:the component providing the feed must do its own capability checks and security $pathname = $functionname($context, $args); }
}
// Check that file exists
if (empty($pathname) || !file_exists($pathname)) {
rss_error();
}

— that generates the unhelpful - Error reading RSS data

Show
Gregor McNish added a comment - For what it's worth; We thought we had this problem with glossaries in version 2 RC1, but it turns out we were trying to view the RSS feed as Admin, rather than as an enrolled user. The glossary rsslib.php (Moodle 2 RC1) in function glossary_rss_get_feed there's if (!is_enrolled($context)) { return null; } The above is called by rss/file.php:-- if (function_exists($functionname)) { // $pathname will be null if there was a problem (eg user doesn't have the necessary capabilities) // NOTE:the component providing the feed must do its own capability checks and security $pathname = $functionname($context, $args); } } // Check that file exists if (empty($pathname) || !file_exists($pathname)) { rss_error(); } — that generates the unhelpful - Error reading RSS data

People

Vote (2)
Watch (1)

Dates

  • Created:
    Updated: