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

PHP error shown when viewing single blog entry

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.6, 2.1.3, 2.2, 2.3
    • Fix Version/s: 2.0.7, 2.1.4, 2.2.1
    • Component/s: Blog
    • Labels:
    • Environment:
      Appeared on qa.moodle.net and my own test servers
    • Database:
      MySQL
    • Testing Instructions:
      Hide
      1. Log in in any role
      2. Navigate to Site pages -> Blogs
      3. If there are no blog entries, add one
      4. Click on the title for a blog entry

      No errors should be displayed.

      Show
      Log in in any role Navigate to Site pages -> Blogs If there are no blog entries, add one Click on the title for a blog entry No errors should be displayed.
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-30541-master

      Description

      The following PHP error is displayed as a page is loading for a single blog entry.

      Notice: Trying to get property of non-object in D:\xampp\htdocs\moodle_testing\blog\rsslib.php on line 60

      Replication steps:

      1. Log in in any role
      2. Navigate to Site pages -> Blogs
      3. If there are no blog entries, add one
      4. Click on the title for a blog entry

      The error above is displayed as the page is loaded.

      Unlike MDL-30540, this affects all 2.x branches, but it must be a recent regression as my master from a couple of weeks ago did not show this problem.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    9/Jan/12