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

Error from the quiz when editing a grade item due to a missing include

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.1.1
    • Fix Version/s: None
    • Component/s: Quiz
    • Labels:
    • Workaround:
      Hide

      require_once($CFG->dirroot . '/mod/quiz/locallib.php');

      Show
      require_once($CFG->dirroot . '/mod/quiz/locallib.php');
    • Affected Branches:
      MOODLE_21_STABLE

      Description

      When editing a grade item, I noticed that saving the changes led to a stall: a missing class definition.

      Debugging the problem I found that in /mod/quiz/lib.php beginning at line 615 mod_quiz_display_options is used.

      Including the locallib solved the problem, but since I'm not sure where the include was broken or whether this is a sufficient fix I'm referring the problem.

      require_once($CFG->dirroot . '/mod/quiz/locallib.php');

      Thanks to whoever can push this upstream. Any information that person (or anyone) wants to give me on pushing code to the core source code, please let me know.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              nickkoeppen Nicholas Koeppen
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: