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

Grade items restored incorrectly cause recursion, memory limit exceeded error

XMLWordPrintable

    • MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • MOODLE_23_STABLE, MOODLE_24_STABLE
    • Hide

      You'll need a 1.9 backup. Restore the backup into a 2.x site and check that the backup restores without error. There is one attached that you can use.

      Perform a backup and restore within your 2.x site just to make sure that that all still works fine.

      MDL-29877 will fix previouly restored grade items so don't worry about that.

      Show
      You'll need a 1.9 backup. Restore the backup into a 2.x site and check that the backup restores without error. There is one attached that you can use. Perform a backup and restore within your 2.x site just to make sure that that all still works fine. MDL-29877 will fix previouly restored grade items so don't worry about that.

      Refer to MDL-37672. Restoring a course backup made in 1.9 which is missing all grade categories, but still has manual grade items that reference those absent categories, will incorrectly insert the grade items with a null category id.

      This will cause a recursion/memory exhaustion error when trying to access the course's Grades interface, as the null category id is unanticipated.

      Suggested fix is to not allow an import of a manual grade item with a null category id. If the mapping (backup_ids_temp) fails, use the course's grade category as a default.

            andyjdavis Andrew Davis
            woolardfa@appstate.edu Fred Woolard
            Rajesh Taneja Rajesh Taneja
            Dan Poltawski Dan Poltawski
            Adrian Greeve Adrian Greeve
            Votes:
            11 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

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