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

Variable numeric statistics analysis of responses fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.7
    • Quiz
    • None

      I have created an interactive with multiple tries quiz containing

      1 numerical (my Q01 - I'll send them to you)
      2 variable numeric (Q02)
      3 variable numeric sets (Q03)
      4 variable numeric sets with units (Q05)

      Each question allowed 3 tries.

      As a single student I answered to all four questions
      1st try: 100
      2nd try: 200
      3rd try: 300.
      All these answers are incorrect.

      I then viewed the grades (OK), responses (OK), main statistics page (OK) and then I looked at the analysis of responses.

      That for numerical looked as expected with 100 under try 1, 200 under try 2 and 300 under try 3.

      But the other three questions gave problems. Here's what I see for Variable numeric.

      ( ! ) Notice: Undefined offset: 1 in /fs1/www_root/icmatest/moodle/question/classes/statistics/responses/analysis_for_question.php on line 114
      Call Stack

      1. Time Memory Function Location
        1 0.0005 257072 {main}( ) ../report.php:0
        2 0.4296 31208920 quiz_statistics_report->display( ) ../report.php:99
        3 0.8467 43179808 quiz_statistics_report->output_individual_question_response_analysis( ) ../report.php:238
        4 0.8518 43294880 core_question\statistics\responses\analysis_for_question->get_subpart_ids( ) ../report.php:421

        ( ! ) Warning: array_keys() expects parameter 1 to be array, null given in /fs1/www_root/icmatest/moodle/question/classes/statistics/responses/analysis_for_question.php on line 114
        Call Stack
        # Time Memory Function Location
        1 0.0005 257072 {main}

        ( ) ../report.php:0
        2 0.4296 31208920 quiz_statistics_report->display( ) ../report.php:99
        3 0.8467 43179808 quiz_statistics_report->output_individual_question_response_analysis( ) ../report.php:238
        4 0.8518 43294880 core_question\statistics\responses\analysis_for_question->get_subpart_ids( ) ../report.php:421
        5 0.8522 43295272 array_keys ( ) ../analysis_for_question.php:114

      ( ! ) Warning: Invalid argument supplied for foreach() in /fs1/www_root/icmatest/moodle/mod/quiz/report/statistics/report.php on line 421
      Call Stack

      1. Time Memory Function Location
        1 0.0005 257072 {main}

        ( ) ../report.php:0
        2 0.4296 31208920 quiz_statistics_report->display( ) ../report.php:99
        3 0.8467 43179808 quiz_statistics_report->output_individual_question_response_analysis( ) ../report.php:238

            jamiesensei Jamie Pratt (Inactive)
            pgb Philip Butcher (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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