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

Missing additional name fields in blog_rss_get_feed()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.0.7, 3.1.3
    • Component/s: Blog
    • Labels:
    • Testing Instructions:
      Hide

      Prerequisites:

      • Enable the blog system (enableblogs) and RSS feeds (enablerssfeeds) on your system; both found in "Site administration -> Advanced features"
      • Set debugging to "Developer" level. Also, make sure that back-end PHP error messages are directed to a log file (e.g., Apache's error.log).
      • Add a course (C) and there, add the "Blog menu" block.
      • Enrol a user U into the course C.
      • Logged in as U, go to C, click "Add an entry about this course" and complete the form.

      Main steps:

      • Purge all caches (Site administration -> Developer -> Purge all caches)
      • Log in as U, go to C and click on "Blog RSS feed"
      • VERIFY: Feed is being displayed (e.g. in Firefox it's displayed in the browser window)
      • VERIFY: There is no new warning message in the error log.

      It may be best to first tun the "Main steps" above without the patch applied, to be sure that you are seeing the error messages; then run them with the patch applied and verify that the messages are now absent.

      Show
      Prerequisites: Enable the blog system (enableblogs) and RSS feeds (enablerssfeeds) on your system; both found in "Site administration -> Advanced features" Set debugging to "Developer" level. Also, make sure that back-end PHP error messages are directed to a log file (e.g., Apache's error.log). Add a course (C) and there, add the "Blog menu" block. Enrol a user U into the course C. Logged in as U, go to C, click "Add an entry about this course" and complete the form. Main steps: Purge all caches (Site administration -> Developer -> Purge all caches) Log in as U, go to C and click on "Blog RSS feed" VERIFY: Feed is being displayed (e.g. in Firefox it's displayed in the browser window) VERIFY: There is no new warning message in the error log. It may be best to first tun the "Main steps" above without the patch applied, to be sure that you are seeing the error messages; then run them with the patch applied and verify that the messages are now absent.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      Found while reviewing my PHP error log (While debugging was set to developer)

      php[6240]
      Debugging: You need to update your sql to include additional name fields in the user object. in

      • line 3273 of \lib\moodlelib.php: call to debugging()
      • line 235 of \blog\rsslib.php: call to fullname()
      • line 157 of \rss\file.php: call to blog_rss_get_feed()

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Nov/16