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

Fatal error for overview report of Quiz when group mode is on

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.1
    • Quiz
    • None
    • MySQL
    • MOODLE_21_STABLE
    • Hide

      Change

      list($usql, $params) = get_in_or_equal($groupstudents);

      to

      list($usql, $params) = $DB->get_in_or_equal($groupstudents);

      Show
      Change list($usql, $params) = get_in_or_equal($groupstudents); to list($usql, $params) = $DB->get_in_or_equal($groupstudents);

      I have a fresh install of Moodle 2.1 and get the following error when I try to view an overview report of a quiz with group mode turned on:

      Fatal error: Call to undefined function get_in_or_equal() in /var/www/moodle_21/moodle/mod/quiz/report/overview/report.php on line 512

      All other calls to this function within the quiz_overview_report class call this function using $DB->get_in_or_equal() so this could be a typo.

      By changing line 512 to read:

      list($usql, $params) = $DB->get_in_or_equal($groupstudents);

      The error does not occur and the report is visible. However, with full debugging turned on, there are other non-fatal errors, namely:

      Warning: Missing argument 3 for quiz_report_feedback_for_grade(), called in /var/www/moodle_21/moodle/mod/quiz/report/overview/overview_table.php on line 78 and defined in /var/www/moodle_21/moodle/mod/quiz/report/reportlib.php on line 259

      Notice: Undefined variable: context in /var/www/moodle_21/moodle/mod/quiz/report/reportlib.php on line 285

      Notice: Trying to get property of non-object in /var/www/moodle_21/moodle/mod/quiz/report/reportlib.php on line 285

      I don't know what the policy is regarding non-fatal errors in core Moodle activities, but the first bug should be corrected ASAP.

            timhunt Tim Hunt
            joe Joseph Cape
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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