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

Error when importing quiz with system level questions from Moodle 2.0 course (which was imported from 1.9) to another Moodle 2.0 course on the same site


    • Icon: Bug Bug
    • Resolution: Inactive
    • Icon: Critical Critical
    • None
    • 2.0.1, 2.3.3, 2.4.4, 2.5.4
    • Backup, Quiz
    • php: 5.3.3
      mysql: 5.5.9
      server: MacOS 10.6.6
    • MySQL
    • Difficult

      Recently successfully upgraded 1.9.10+ to 2.0.1+. In 1.9.10+, the bulk of my questions were at the system level. Also in 1.9.10+, we had several non-standard question types: drag-and-drop matching, ordering...

      Here's what I did that caused the error:
      In 2.0.1+, I made a new course.
      From Course Administration of my new course, clicked 'Import'.
      Choose the course to import from (one that was upgraded from 1.9.10+ to 2.0.1). For backup settings, I only choose 'include activities' (i.e. unchecked include blocks and include filters)

      3 scenarios from here:
      1) If I choose to import a resource, the import was successful
      2) If I choose to import a quiz where the questions are course level, the import was successful
      3) If I choose to import a quiz where the questions are site level, the import fails and I get a white screen with this message:
      Fatal error: Call to undefined function restore_step_exception() in /Library/WebServer/Documents/moodle/question/type/match/backup/moodle2/restore_qtype_match_plugin.class.php on line 118

      I tried several different quizzes with the same results. None of quizzes used any non-standard type question types that were on the Moodle 1.9 system.

      If I create a new quiz, I can successfully use the existing questions in the question bank (the same ones that caused the import error).

      Any help resolving this issue would be greatly appreciated.


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