-
Bug
-
Resolution: Fixed
-
Minor
-
2.0.2
-
n/a
-
MOODLE_20_STABLE
-
MOODLE_20_STABLE
-
MDL-27155_master -
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.