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

Missing "require" in question types files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.3, 3.0
    • Fix Version/s: 2.9.4, 3.0.1
    • Component/s: Questions
    • Labels:

      Description

      See MDL-52162 for a fatal error about missing class during upgrade.
      The solution for MDL-52162 is to remove unnecessary require statement for 3.0 and master.

      This issue is to add missing require statements in the files.

      To test create a file in wwwroot, uncomment one line at a time and open it in browser. No errors should be displayed.

      <?php
       
      require_once('config.php');
      //require_once($CFG->dirroot.'/question/type/calculated/question.php');
      //require_once($CFG->dirroot.'/question/type/calculatedmulti/question.php');
      //require_once($CFG->dirroot.'/question/type/calculatedsimple/question.php');
      //require_once($CFG->dirroot.'/question/type/ddimageortext/question.php');
      //require_once($CFG->dirroot.'/question/type/ddmarker/question.php');
      //require_once($CFG->dirroot.'/question/type/ddwtos/question.php');
      //require_once($CFG->dirroot.'/question/type/description/question.php');
      //require_once($CFG->dirroot.'/question/type/essay/question.php');
      //require_once($CFG->dirroot.'/question/type/gapselect/question.php');
      //require_once($CFG->dirroot.'/question/type/match/question.php');
      //require_once($CFG->dirroot.'/question/type/missingtype/question.php');
      //require_once($CFG->dirroot.'/question/type/multianswer/question.php');
      //require_once($CFG->dirroot.'/question/type/multichoice/question.php');
      //require_once($CFG->dirroot.'/question/type/numerical/question.php');
      //require_once($CFG->dirroot.'/question/type/randomsamatch/question.php');
      //require_once($CFG->dirroot.'/question/type/shortanswer/question.php');
      //require_once($CFG->dirroot.'/question/type/truefalse/question.php');
       
      //require_once($CFG->dirroot.'/question/type/calculated/questiontype.php');
      //require_once($CFG->dirroot.'/question/type/calculatedmulti/questiontype.php');
      //require_once($CFG->dirroot.'/question/type/calculatedsimple/questiontype.php');
      //require_once($CFG->dirroot.'/question/type/ddimageortext/questiontype.php');
      //require_once($CFG->dirroot.'/question/type/ddmarker/questiontype.php');
      //require_once($CFG->dirroot.'/question/type/ddwtos/questiontype.php');
      //require_once($CFG->dirroot.'/question/type/description/questiontype.php');
      //require_once($CFG->dirroot.'/question/type/essay/questiontype.php');
      //require_once($CFG->dirroot.'/question/type/gapselect/questiontype.php');
      //require_once($CFG->dirroot.'/question/type/match/questiontype.php');
      //require_once($CFG->dirroot.'/question/type/missingtype/questiontype.php');
      //require_once($CFG->dirroot.'/question/type/multianswer/questiontype.php');
      //require_once($CFG->dirroot.'/question/type/multichoice/questiontype.php');
      //require_once($CFG->dirroot.'/question/type/numerical/questiontype.php');
      //require_once($CFG->dirroot.'/question/type/random/questiontype.php');
      //require_once($CFG->dirroot.'/question/type/randomsamatch/questiontype.php');
      //require_once($CFG->dirroot.'/question/type/shortanswer/questiontype.php');
      //require_once($CFG->dirroot.'/question/type/truefalse/questiontype.php');
       
      echo "ok";
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  21/Dec/15