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

Add-on question type give a fatal error in the statistics report if they are not updated

XMLWordPrintable

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

      I have extended my testing to bring in OpenMark questions through Opaque. This has thrown up issues associated with showing all responses to all tries.

      The quiz is iCMA02/9 Interactive and including OpenMark.

      This test is to check that
      1. I can see all responses to OpenMark questions which allow multiple tries
      2. I do get the breakdown of responses under statistics.

      Q1 & Q2 are Moodle questions Q3, Q4 and Q5 are brought in through Opaque.

      Clicking on the responses link and ‘Last try’ is OK. All the ‘last’ responses to all questions are listed.

      But clicking on the responses link and ‘All tries’ gives

      Fatal error: Call to undefined method qtype_opaque_question::summarise_response() in /fs1/www_root/icmatest/moodle/mod/quiz/report/responses/first_or_all_responses_table.php on line 141
      Call Stack

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

        ( ) ../report.php:0
        2 0.4180 31296304 quiz_responses_report->display( ) ../report.php:96
        3 0.8617 43599136 table_sql->out( ) ../report.php:198
        4 1.1052 49912080 quiz_last_responses_table->build_table( ) ../tablelib.php:1496
        5 1.1053 49912352 table_sql->build_table( ) ../last_responses_table.php:62
        6 1.1053 49912448 flexible_table->format_row( ) ../tablelib.php:1384
        7 1.1113 49927224 quiz_last_responses_table->other_cols( ) ../tablelib.php:762
        8 1.1113 49927856 quiz_last_responses_table->data_col( ) ../last_responses_table.php:132
        9 1.1113 49927856 quiz_first_or_all_responses_table->field_from_extra_data( ) ../last_responses_table.php:85
        10 1.1113 49927856 quiz_first_or_all_responses_table->get_summary_after_try( ) ../first_or_all_responses_table.php:51

      Clicking on statistics and then the question name
      No responses are listed and there is no breakdown by Try 1, Try 2 etc.

            timhunt Tim Hunt
            pgb Philip Butcher (Inactive)
            Tim Hunt Tim Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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