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)
- 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.
- Edit the forum activity and change the RSS feed for this activity to "Discussions"
- 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"?>
|