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

Each attempt builds on the last fails when starting a second preview

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.3.8, 2.4.5, 2.5.1
    • 2.4.4
    • Quiz
    • MOODLE_24_STABLE
    • MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • Hide

      1. Create a quiz with Each attempt builds on last set, and allowing mulitple attempsts.

      2. Preview the quiz as a teacher. At the end, get back to the start, and click the Start another attempt button on the Quiz info page.

      3. In the middle of that second preview, click that Start a new preview button.

      4. Now attempt the quiz twice as a student, enduring that the second attempt starts with all the responses from your first attempt loaded into the questions.

      5. Now assign the student the role non-editing teacher in the quiz context.

      6. Now the student can preview the quiz. Do so twice, and verify that works.

      Show
      1. Create a quiz with Each attempt builds on last set, and allowing mulitple attempsts. 2. Preview the quiz as a teacher. At the end, get back to the start, and click the Start another attempt button on the Quiz info page. 3. In the middle of that second preview, click that Start a new preview button. 4. Now attempt the quiz twice as a student, enduring that the second attempt starts with all the responses from your first attempt loaded into the questions. 5. Now assign the student the role non-editing teacher in the quiz context. 6. Now the student can preview the quiz. Do so twice, and verify that works.

      As I said in summary:

      1. Create a test with following settings
        • Multiple attempts (I did "unlimited")
        • Turn "Each attempt builds on the last" on
        • Restrict access (I did "institution" contains "FGWT"), which the admin doesn't match
      2. Do the test completely (with submission)
      3. Try to repeat the test

      Then you get following Exception:

      Debug Info: Failed to load questions_usage_by_activity

      Error code:
        codingerror
      Stack trace:
        line 342 of /question/engine/datalib.php: coding_exception thrown
        line 78 of /question/engine/lib.php: call to question_engine_data_mapper->load_questions_usage_by_activity()
        line 224 of /mod/quiz/startattempt.php: call to question_engine::load_questions_usage_by_activity()
      

            timhunt Tim Hunt
            eberhardt Jan Eberhardt
            Sam Hemelryk Sam Hemelryk
            Ankit Agarwal Ankit Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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