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

Problem downloading statistics in Quiz

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.1.5
    • Fix Version/s: None
    • Component/s: Quiz
    • Labels:
      None
    • Environment:
      OS: CentOS 7
      Webservice: Apache and nginx + php-fpm
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_31_STABLE

      Description

      In quiz activity, when we go to "Results-> Statistics" and try to download tables or report (Quiz information) or "Quiz structure analysis" in format csv, xls or ods we get an 500 error.

      The debug log error are

       

      PHP Fatal error:  Call to a member function close() on a non-object in /var/www/html/moodle/lib/classes/dataformat/spout_base.php on line 102, referer: http://xxx.xxxx.xx/mod/quiz/report.php?id=197196&mode=statistics

       Steps to reproduce:

      1.- In a course create a quiz

      2.- Answer the quiz with some students

      3.- As teacher go to Results --> Statistics

      4.- in "Quiz Information" section  or "Quiz structure analysis" section press "Download" selecting CSV, XLS or ODS format 

       

      We test this in several moodle installation and we get the same error.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: