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

Quiz Import: unable to import Cloze question because of "generalfeedback" column

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.2
    • 1.7.3, 1.8.3, 1.9
    • Questions
    • None
    • MOODLE_18_STABLE
    • MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

    Description

      I am unable to import any Cloze question. All attempts end with the following error message:

      ERROR: null value in column "generalfeedback" violates not-null constraint

      INSERT INTO mdlspa_question ( ID, CATEGORY, NAME, QUESTIONTEXT, DEFAULTGRADE, QTYPE, STAMP ) VALUES ( 21, 3, '::A simple Cloze question:: ', '::A simple Cloze question:: This question consists of some text with an answer embedded right here

      {#1}

      and right after that you will have to deal with this short answer

      {#2}

      and finally we have a floating point number

      {#3}

      . Note that addresses like www.moodle.org and smileys all work as normal: a) How good is this?

      {#4}

      b) What grade would you give it?

      {#5}

      Good luck! ', 8, 'multianswer', 'www.agenturaspa.cz.web4ce.cz+070820170240+12NB4D' )

      • line 1425 of lib/dmllib.php: call to debugging()
      • line 234 of question/format.php: call to insert_record()
      • line 181 of question/import.php: call to qformat_default->importprocess()

      I am attaching the file to be imported (it is the question from http://moodle.org/help.php?module=quiz&file=multianswer.html)

      Attachments

        Activity

          People

            howardsmiller Howard Miller
            mudrd8mz David Mudrák (@mudrd8mz)
            Nobody Nobody
            Safat Shahin, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11/Oct/07