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

Error being logged when navigating from gradebook to quiz

    XMLWordPrintable

    Details

      Description

      To reproduce:

      1. Create a course.
      2. Add a quiz.
      3. Add a true-false question.
      4. Attempt the quiz as a student.
      5. As a teacher, go to the gradebook, grader report.
      6. Find the student's grade, and click the 'Grade analysis' magnifying glass icon.

      Actual result: an error appears in the logs:

      Warning: count(): Parameter must be an array or an object that implements Countable in /.../www/html/vle/mod/quiz/attemptlib.php on line 1501 Call Stack:

      0.0012   424440 1. {main}() /.../www/html/vle/mod/quiz/grade.php:0
      1.3443 40166040 2. quiz_attempt->review_url() /.../www/html/vle/mod/quiz/grade.php:84
      1.3443 40166040 3. quiz_attempt->page_and_question_url() /.../www/html/vle/mod/quiz/attemptlib.php:1492
      1.3443 40166040 4. quiz_attempt->get_default_show_all() /.../www/html/vle/mod/quiz/attemptlib.php:2151
      

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            timhunt Tim Hunt
            Peer reviewer:
            Mahmoud Kassaei
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            Anna Carissa Sadia
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              9/Mar/20

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 40 minutes
                40m