Hi there,
for our questions we installed some useful plugins such as Drag & Drop of Text (qtype_ddwtos) or Drag & Drop of image (type_ddimageortext) . We created some questions with the help of these plugins in a particular category. However, problems arised when we tried to export the questions of the category. After clicking the export-button we got an error message similar to:
record can not be found in table "question_ddwtos"
Debug info: SELECT * FROM {qtype_ddimageortext} WHERE questionid = ?
[array (
0 => '181',
)]
Error code: invalidrecord
0 => '181',
)]
Error code: invalidrecord
Stack trace:
- line 1453 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
- line 1429 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
- line 48 of /question/type/ddimageortext/questiontypebase.php: call to moodle_database->get_record()
- line 90 of /question/editlib.php: call to qtype_ddtoimage_base->get_question_options()
- line 768 of /question/format.php: call to get_questions_category()
- line 1767 of /lib/questionlib.php: call to qformat_default->exportprocess()
- line 4361 of /lib/filelib.php: call to question_pluginfile()
- line 37 of /pluginfile.php: call to file_pluginfile()
Once we moved all the questions to another category the export was succesfull.
Can you say, why the original export did not work ?
What was our mistake ?
Thanks for your help.
Cheers
Sonja