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

import of questions failing "'answernumbering' cannot be null"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Questions
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      When I export and import questions in GIFT format I get the following error.

      Notice: Undefined property: stdClass::$answernumbering in C:\sites\moodle-HEAD\question\type\multichoice\questiontype.php on line 107
      Column 'answernumbering' cannot be null

      INSERT INTO mdl_question_multichoice ( QUESTION, ANSWERS, SINGLE, SHUFFLEANSWERS, CORRECTFEEDBACK, PARTIALLYCORRECTFEEDBACK, INCORRECTFEEDBACK, ANSWERNUMBERING ) VALUES ( 4, '7,8,9', 1, 1, '', '', '', null )

      • line 1419 of lib\dmllib.php: call to debugging()
      • line 118 of question\type\multichoice\questiontype.php: call to insert_record()
      • line 209 of question\format.php: call to question_multichoice_qtype->save_question_options()
      • line 193 of question\import.php: call to qformat_default->importprocess()

      Could not insert quiz multichoice options!

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              howardsmiller Howard Miller
              Reporter:
              jamiesensei Jamie Pratt
              Tester:
              Nobody Nobody
              Participants:
              Component watchers:
              Tim Hunt, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08