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

Deletion of scale causes outcomes error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 2.7.11, 2.8.9, 2.9.3, 4.1
    • Gradebook
    • MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_401_STABLE

      I am seeing the following fatal error when trying to load Site Administration -> Grades -> Outcomes:

      Fatal error: Call to a member function load_items() on a non-object in /mnt/code/www/moodle_prod/lib/grade/grade_outcome.php on line 212

      After some investigation I have discovered that there is some outcomes associated with a scale id that was deleted.

      The scale appears to have at first been a standard scale (course id 0) and attached to multiple site wide out comes. Then the scale was moved to a course by being edited in the course level and unchecking the standard checkbox. That course was eventually deleted which triggered that scale to be deleted, leaving behind outcomes that were still associated with it.

      Steps to replicate:

      Create a Scale at the site level
      Create an outcome at the site level, attaching it to the scale you just created
      Create a course and go into the course and view scales
      Edit the scale you just created and uncheck the Standard Scale box (makes it a course scale)
      Delete the course you just created
      Try to load Site Administration -> Grades -> Outcomes

            Unassigned Unassigned
            heather.williams Heather Williams
            Votes:
            5 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.