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

Viewing a single blog entry shows an error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2, 2.3
    • Fix Version/s: 2.2.2
    • Component/s: Blog
    • Labels:
    • Environment:
      Appeared on qa.moodle.net and a test server of 2.2 beta.
    • 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_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-30540-master

      Description

      When viewing a single blog entry, the following error is shown.

      Can not change context instance properties!
       
          line 4642 of \lib\accesslib.php: call to debugging()
          line 317 of \blog\lib.php: call to context->__set()
          line 698 of \blog\lib.php: call to blog_get_context_url()
          line 824 of \blog\locallib.php: call to blog_get_headers()
          line 234 of \blog\index.php: call to blog_listing->print_entries()

      The entry still displays.

      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 should appear.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    12/Mar/12