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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.7.3, 1.8.3, 1.9
    • Component/s: Questions
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      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

            Assignee:
            howardsmiller Howard Miller
            Reporter:
            mudrd8mz David Mudrák (@mudrd8mz)
            Tester:
            Nobody
            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:
              Fix Release Date:
              11/Oct/07