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

Essay question in Lesson. cannotfindpreattempt

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.1.6
    • Lesson
    • None
    • MOODLE_401_STABLE

      The error:

      Previous attempt record could not be found!

      Debug info:
      Error code: cannotfindpreattempt this notification

      Stack trace:
      line 3315 of /mod/lesson/locallib.php: moodle_exception thrown
      line 227 of /mod/lesson/view.php: call to lesson->prepare_page_and_contents()

      Steps to reproduce the problem:

      0. Create a course and a student enrolled if they do not exist yet.

      1. Create a lesson (or restore from the attached backup):

      • free navigation allowed and navigation menu displayed,
      • maximum number of attempts per question - unlimited,
      • re-takes allowed - yes,
      • minimum number of questions - minimum 2,
      • question of essay type and a couple of questions with automatic grading,
      • a page that allows to go to any question.

      2. Go through the entire lesson as a student, giving correct answers to all questions.

      3. Evaluate the student's essay (give maximum grade).

      4. Start another attempt as the student:

      • answer only one question and skip to the end of the lesson,
      • use navigation to go to a page in the lesson,
      • see error: cannotfindpreattempt,
      • click "continue" and see a notification that the student received more points than possible for the automatically graded questions and that the current grade is 100 out of 100.

        1. 3 out of 2.png
          115 kB
          Андрей Усков
        2. backup-moodle2-activity-9-lesson9-20231120-1149-nu-nf.mbz
          4 kB
          Андрей Усков
        3. cannotfindpreattempt.png
          90 kB
          Андрей Усков
        4. End of the lesson.png
          85 kB
          Андрей Усков
        5. Lesson essay.gif
          3.02 MB
          Андрей Усков
        6. You should answer at least 2.png
          98 kB
          Андрей Усков

            Unassigned Unassigned
            андрейусков Андрей Усков
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

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