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

PHP error shown when viewing single blog entry

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.6, 2.1.3, 2.2, 2.3
    • 2.0.7, 2.1.4, 2.2.1
    • Blog
    • Appeared on qa.moodle.net and my own test servers
    • MySQL
    • MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • wip-MDL-30541-master
    • 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.

    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.

      Attachments

        Issue Links

          Activity

            People

              phalacee Jason Fowler
              salvetore Michael de Raadt
              Sam Hemelryk Sam Hemelryk
              Aparup Banerjee Aparup Banerjee
              Michael de Raadt Michael de Raadt
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/Jan/12