Moodle Community Sites

Forum and database rss feeds broken

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Component/s: moodle.org
  • Labels:
    None

Description

For most forums, clicking on RSS link gives result like the following:

XML Parsing Error: prefix not bound to a namespace
Location: http://moodle.org/rss/file.php/55/11274/forum/934/rss.xml
Line Number 24, Column 7: <dc:creator>Paul Fynn</dc:creator>
------^

Issue Links

Activity

Hide
Helen Foster added a comment -

Martin, thanks for your report. Assigning to Martin.

Show
Helen Foster added a comment - Martin, thanks for your report. Assigning to Martin.
Hide
Mihai Sucan added a comment -

The problem seems to be the missing XML namespace defintion.

Changing:

<rss version="2.0">

To:

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">

... should work. However, it is important to know what the developer wanted to do, when he made the changes to the code which generates the RSS feeds.

Show
Mihai Sucan added a comment - The problem seems to be the missing XML namespace defintion. Changing: <rss version="2.0"> To: <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"> ... should work. However, it is important to know what the developer wanted to do, when he made the changes to the code which generates the RSS feeds.
Hide
Martin Dougiamas added a comment -

Sam can you look into this?

Show
Martin Dougiamas added a comment - Sam can you look into this?
Hide
Martin Dougiamas added a comment -

Whoops, wrong Sam, I meant Sam Hemelryk.

Show
Martin Dougiamas added a comment - Whoops, wrong Sam, I meant Sam Hemelryk.
Hide
Sam Hemelryk added a comment -

Thanks Martin for picking this up and creating an issue.
It has now been resolved by adding the dc namespace to the rss tag as suggested.
This was a moodle.org specific issue as the creator tag was not being used presently in the stable versions. I have created an improvement issue (see linked MDL-19423) to request that creator tag be included into the stable versions and to ensure that when it does we do not see this issue reappearing

Resolving as fixed, thanks all

Show
Sam Hemelryk added a comment - Thanks Martin for picking this up and creating an issue. It has now been resolved by adding the dc namespace to the rss tag as suggested. This was a moodle.org specific issue as the creator tag was not being used presently in the stable versions. I have created an improvement issue (see linked MDL-19423) to request that creator tag be included into the stable versions and to ensure that when it does we do not see this issue reappearing Resolving as fixed, thanks all

People

Vote (5)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: