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

PHP7 - question/type/multianswer with zero grade for all subquestions breaks quiz statistics

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.3.2, 3.4, 3.6.4, 3.7
    • Questions, Quiz
    • MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
    • Easy

      When creating a quizz, only use cloze sub-question with 0 as a grade.

      In /question/type/multianswer/question.php, you get a division by zero in get_max_fraction().

      Then when starting the quizz, you get a database error :

      Default exception handler: Error writing to database Debug: Unknown column 'NAN' in 'field list'\nINSERT INTO mdl_question_attempts[...]

       

      It only happens with PHP 7.

            Unassigned Unassigned
            ligned David Ligne
            Votes:
            6 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:

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