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

Fatal error in statistics when using many q types in interactive with multiple tries mode

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a bug
    • Affects Version/s: 2.7
    • Fix Version/s: None
    • Component/s: Quiz
    • Labels:

      Description

      After a week of checking I have reached the point where I feel confident enough to build a test with all our question types (except opaque and STACK) and also including the three calculated question types.

      I ran it in interactive with multiple tries mode and made sure that I had three tries at all questions except true/false.

      I ran through the test as a single student. All OK.
      Grades - OK
      Responses. I looked at all response for all tries. All OK.
      Statistics - ERROR

      ( ! ) Notice: Undefined offset: 4 in /fs1/www_root/icmatest/moodle/question/classes/statistics/responses/analysis_for_subpart.php on line 84
      Call Stack

      1. Time Memory Function Location
        1 0.0004 252880 {main}( ) ../report.php:0
        2 0.4198 31284368 quiz_statistics_report->display( ) ../report.php:99
        3 0.8851 47233368 quiz_statistics_report->get_all_stats_and_analysis( ) ../report.php:148
        4 0.9403 48085928 quiz_statistics_report->analyse_responses_for_all_questions_and_subquestions( ) ../report.php:573
        5 0.9403 48086576 quiz_statistics_report->analyse_responses_for_questions( ) ../report.php:616
        6 2.3886 49281424 core_question\statistics\responses\analyser->calculate( ) ../report.php:648
        7 2.3958 49335800 core_question\statistics\responses\analysis_for_question->count_response_parts( ) ../analyser.php:128
        8 2.3959 49346592 core_question\statistics\responses\analysis_for_subpart->count_response( ) ../analysis_for_question.php:189
        9 2.3959 49346640 core_question\statistics\responses\analysis_for_subpart->get_response_class( ) ../analysis_for_subpart.php:103

        ( ! ) Fatal error: Call to a member function count_response() on a non-object in /fs1/www_root/icmatest/moodle/question/classes/statistics/responses/analysis_for_subpart.php on line 104
        Call Stack
        # Time Memory Function Location
        1 0.0004 252880 {main}

        ( ) ../report.php:0
        2 0.4198 31284368 quiz_statistics_report->display( ) ../report.php:99
        3 0.8851 47233368 quiz_statistics_report->get_all_stats_and_analysis( ) ../report.php:148
        4 0.9403 48085928 quiz_statistics_report->analyse_responses_for_all_questions_and_subquestions( ) ../report.php:573
        5 0.9403 48086576 quiz_statistics_report->analyse_responses_for_questions( ) ../report.php:616
        6 2.3886 49281424 core_question\statistics\responses\analyser->calculate( ) ../report.php:648
        7 2.3958 49335800 core_question\statistics\responses\analysis_for_question->count_response_parts( ) ../analyser.php:128
        8 2.3959 49346592 core_question\statistics\responses\analysis_for_subpart->count_response( ) ../analysis_for_question.php:189

      So which q-type is causing the problem?

        Attachments

          Activity

            People

            • Assignee:
              jamiesensei Jamie Pratt
              Reporter:
              pgb Philip Butcher
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: