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

question import for GIFT essay questions throws db exception

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1, 2.2
    • Fix Version/s: 2.1.2
    • Component/s: Questions
    • Labels:
    • Environment:
      Ubuntu 10.04, ESX virtual machine
    • Database:
      MySQL
    • Testing Instructions:
      Hide

      1. Get an example GIFT file including an essay question. For example question/format/gift/simpletest/fixtures/questions.gift.txt
      2. Import it, check there are no errors.
      3. Check that the imported Essay question is OK.

      Show
      1. Get an example GIFT file including an essay question. For example question/format/gift/simpletest/fixtures/questions.gift.txt 2. Import it, check there are no errors. 3. Check that the imported Essay question is OK.
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      On fresh install of Moodle 2.1 (Build: 20110713)

      Attempting to import a sample GIFT essay question,

      Write a short biography of Dag Hammarskjöld. {}

      results in a dml_write_exception when trying to insert the record in the database. A debug message is also shown.

      The question does appear in the question bank however, but continued processing of additional questions stops.

      Debug message follows:
      Notice: Undefined property: stdClass::$responseformat in /home/moodle/public_html/public/question/type/essay/questiontype.php on line 63 Notice: Undefined property: stdClass::$responsefieldlines in /home/moodle/public_html/public/question/type/essay/questiontype.php on line 64 Notice: Undefined property: stdClass::$attachments in /home/moodle/public_html/public/question/type/essay/questiontype.php on line 65 Notice: Undefined property: stdClass::$graderinfo in /home/moodle/public_html/public/question/type/essay/questiontype.php on line 66 Notice: Undefined property: stdClass::$graderinfo in /home/moodle/public_html/public/question/type/essay/questiontype.php on line 68

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Oct/11