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

Problem importing numeric question/answer into quiz in GIFT format

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0.3
    • 2.0.2
    • Quiz
    • n/a
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE
    • MDL-27155_master
    • Hide

      Import a GIFT file including a numerical question. I already used the test file attached to this issue, so it would be a better test if you used a different GIFT file containing numerical questions.

      Also check that there are no regressions when editing numerical questions through the UI, or importing from Moodle XML.

      Show
      Import a GIFT file including a numerical question. I already used the test file attached to this issue, so it would be a better test if you used a different GIFT file containing numerical questions. Also check that there are no regressions when editing numerical questions through the UI, or importing from Moodle XML.

      When attempting to import a text file containing questions in GIFT format into a quiz in 2.0.2+ (Build: 20110406), the import process consistently halts when encountering a numeric type

      {#1} question and reports "Error writing to database." Clicking on "More information about this error" brings up this screen:

      >error/moodle/dmlwriteexception
      >This indicates that a general error occurred when Moodle tried to write to the database. If you turn on Debugging you will get more detailed information about what the problem is.
      >When importing questions in Aiken format after successful reading all questions this error emerges when saving in the database. No definite rule why. Ver. 2.0

      When attempting to import the identical file into 1.9, everything proceeds smoothly, and all questions, including numeric ones, are handled properly.

      Repeated testing with multiple versions of the text file gives the same results (success in 1.9, failure in 2.0.2) over and over again.

      I've attached a copy of the text file, which looks like this:

      This is a note.

      This requires a numeric answer.{#1}

      This requies a text answer.

      {=Text}

      I'm told this is a bug and should be reported here.

            timhunt Tim Hunt
            wstone@santarosa.edu Bill Stone
            Tim Hunt Tim Hunt
            Sam Hemelryk Sam Hemelryk
            David Mudrák (@mudrd8mz) David Mudrák (@mudrd8mz)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.