Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-42599

Missing alternate name fields when creating RSS for Forum Module

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.6
    • Fix Version/s: 2.6
    • Component/s: Forum, RSS
    • Labels:
    • Testing Instructions:
      Hide

      Prerequisites:

      • RSS must be enabled on the server (enable enablerssfeeds and forum_enablerssfeeds)
      • Edit rss/file.php and change define("NO_DEBUG_DISPLAY", true) to define("NO_DEBUG_DISPLAY", false)
      1. Create a forum activity with the following settings:
        • RSS feed for this activity: posts
        • Number of RSS recent articles: 10
      2. Add two posts to the forum activity
      3. View the RSS feed.
      4. The RSS feed will still have errors (known issue - see MDL-42607), just make sure there are no debugging messages about additional names.
      5. Edit the forum activity and change the RSS feed for this activity to "Discussions"
      6. View the RSS feed.
      7. The RSS feed will still have errors (known issue - see MDL-42607), just make sure there are no debugging messages about additional names.
      Show
      Prerequisites: RSS must be enabled on the server (enable enablerssfeeds and forum_enablerssfeeds) Edit rss/file.php and change define("NO_DEBUG_DISPLAY", true) to define("NO_DEBUG_DISPLAY", false) Create a forum activity with the following settings: RSS feed for this activity: posts Number of RSS recent articles: 10 Add two posts to the forum activity View the RSS feed. The RSS feed will still have errors (known issue - see MDL-42607 ), just make sure there are no debugging messages about additional names. Edit the forum activity and change the RSS feed for this activity to "Discussions" View the RSS feed. The RSS feed will still have errors (known issue - see MDL-42607 ), just make sure there are no debugging messages about additional names.
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-42599-master

      Description

      Prerequisites:

      • RSS must be enabled on the server.
      • Edit rss/file.php and change define("NO_DEBUG_DISPLAY", true) to define("NO_DEBUG_DISPLAY", false)
      1. Create a forum activity with the following settings:
        • RSS feed for this activity: posts
        • Number of RSS recent articles: 10
      2. Add two posts to the forum activity
      3. View the RSS feed.
      4. Edit the forum activity and change the RSS feed for this activity to "Discussions"
      5. View the RSS feed

      Expected result: No errors are displayed.

      Actual result: The following is shown.

      XML Parsing Error: junk after document element
      Location: http://localhost/moodle/moodle-git-dev/rss/file.php/20/62928ca48c37b76007ab72a3965ce3fb/mod_forum/1/rss.xml
      Line Number 1, Column 425:
       
      <div class="notifytiny debuggingmessage" data-rel="debugging">missing full discussion<ul style="text-align: left" data-rel="backtrace"><li>line 5412 of \mod\forum\lib.php: call to debugging()</li><li>line 323 of \mod\forum\rsslib.php: call to forum_user_can_see_post()</li><li>line 81 of \mod\forum\rsslib.php: call to forum_rss_feed_contents()</li><li>line 162 of \rss\file.php: call to forum_rss_get_feed()</li></ul></div><div class="notifytiny debuggingmessage" data-rel="debugging">missing full post<ul style="text-align: left" data-rel="backtrace"><li>line 5418 of \mod\forum\lib.php: call to debugging()</li><li>line 323 of \mod\forum\rsslib.php: call to forum_user_can_see_post()</li><li>line 81 of \mod\forum\rsslib.php: call to forum_rss_feed_contents()</li><li>line 162 of \rss\file.php: call to forum_rss_get_feed()</li></ul></div><div class="notifytiny debuggingmessage" data-rel="debugging">You need to update your sql to include additional name fields in the user object.<ul style="text-align: left" data-rel="backtrace"><li>line 3568 of \lib\moodlelib.php: call to debugging()</li><li>line 340 of \mod\forum\rsslib.php: call to fullname()</li><li>line 81 of \mod\forum\rsslib.php: call to forum_rss_feed_contents()</li><li>line 162 of \rss\file.php: call to forum_rss_get_feed()</li></ul></div><?xml version="1.0" encoding="UTF-8"?>
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  18/Nov/13