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

Notice: Trying to get property of non-object in lib/ajax/blocks.php on line 93

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.1
    • Fix Version/s: 2.5.5, 2.6.2
    • Component/s: Blocks
    • Labels:
    • Testing Instructions:
      Hide

      Follow through reproduction instructions in description and check you don't get the notice detailed there.

      Show
      Follow through reproduction instructions in description and check you don't get the notice detailed there.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Pull Master Branch:
      43714-27
    • Pull Master Diff URL:
    • Story Points:
      5
    • Sprint:
      FRONTEND Sprint 8

      Description

      Easy to reproduce:

      1. Open a terminal and start watching your apache logs (thats right folks you have to watch the logs)
      2. Log in as an admin
      3. Turn on editing
      4. Drag all blocks on the left over to the right
      5. When all blocks are on the right drag any block from over to the left.
      6. Observe you have a notice in your logs now.

      PHP Notice:  Trying to get property of non-object in /var/www/integration/lib/ajax/blocks.php on line 93, referer: http://localhost/integration/course/view.php?id=2
      PHP Stack trace:, referer: http://localhost/integration/course/view.php?id=2
      PHP   1. {main}() /var/www/integration/lib/ajax/blocks.php:0, referer: http://localhost/integration/course/view.php?id=2
      PHP Notice:  Trying to get property of non-object in /var/www/integration/lib/ajax/blocks.php on line 93, referer: http://localhost/integration/course/view.php?id=2
      PHP Stack trace:, referer: http://localhost/integration/course/view.php?id=2
      PHP   1. {main}() /var/www/integration/lib/ajax/blocks.php:0, referer: http://localhost/integration/course/view.php?id=2
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              samhemelryk Sam Hemelryk
              Reporter:
              samhemelryk Sam Hemelryk
              Peer reviewer:
              Andrew Davis Andrew Davis
              Integrator:
              Dan Poltawski Dan Poltawski
              Tester:
              Frédéric Massart Frédéric Massart
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Mar/14