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

Unable to load quiz from imported IMSCC

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.1.2
    • Backup: IMS-CC, Quiz
    • None
    • MOODLE_401_STABLE

      We distribute IMSCC files with QTI formatted quiz questions.  There is a simple example here with a single quiz and a single question: https://content.nroc.org/masters/DevMath/Debug/test.imscc

      We import this into Moodle using the restore feature.

      After it is imported, try to navigate to the quiz and Preview.  We get the error listed below.  Selecting "Questions" under "Quiz Administration" gives a similar error.  What is strange is that the questions are in the "Question Bank" so they are imported properly and preview correctly.  We only see the error in the Quiz area.  These worked fine on previous versions of Moodle (3.x).

      Error

      Coding error detected, it must be fixed by a programmer: This question is of a type that is not installed on your system. No processing is possible.

      Debug info:
      Error code: codingerror

      Stack trace:

      • line 85 of /question/type/missingtype/question.php: coding_exception thrown
      • line 364 of /question/behaviour/behaviourbase.php: call to qtype_missingtype_question->start_attempt()
      • line 1064 of /question/engine/questionattempt.php: call to question_behaviour->init_first_step()
      • line 582 of /question/engine/questionusage.php: call to question_attempt->start()
      • line 257 of /mod/quiz/locallib.php: call to question_usage_by_activity->start_all_questions()
      • line 2690 of /mod/quiz/locallib.php: call to quiz_start_new_attempt()
      • line 113 of /mod/quiz/startattempt.php: call to quiz_prepare_and_start_new_attempt()

      Output buffer: <br /> <b>Warning</b>: Creating default object from empty value in <b>/var/www/html/moodle/mod/quiz/locallib.php</b> on line <b>187</b><br />

            Unassigned Unassigned
            philcross Phil Cross
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

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