Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6586

Error writing to database on Restore: Data too long for column 'answers' at row 1\nINSERT INTO mdl_question_multichoice

$
0
0
by Susan Mangan.  

Version 2.4.7+

Error trying to restore a backup.  Odd thing is that I can successfully restore the same backup file on our dev server which is running the exact same build.  Which makes me think this has something to do with the following tracker items: https://tracker.moodle.org/browse/MDL-39877https://tracker.moodle.org/browse/MDL-37600 which aren't resolved until 2.5.  REALLY hoping there is something we can do for 2.4+ as we have multiple courses we need to copy that are giving us the same error.  Can we change the column width to resolve temporarily?  Reluctant to do any manual changes like this without a developer OK.  Here is the debug info:

Thanks in advance!!

[Fri Jan 17 14:28:05 2014] [error] [client xxx] Default exception handler: Error writing to database Debug: Data too long for column 'answers' at row 1\nINSERT INTO mdl_question_multichoice (layout,answers,single,shuffleanswers,correctfeedback,correctfeedbackformat,partiallycorrectfeedback,partiallycorrectfeedbackformat,incorrectfeedback,incorrectfeedbackformat,answernumbering,shownumcorrect,question) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?)\n[array (\n  0 => '0',\n  1 => '1206278,1206279,1206280,1206281,1206282,1206283,1206284,1206285,1206286,1206287,1206288,1206289,1206290,1206291,1206292,1206293,1206294,1206295,1206296,1206297,1206298,1206299,1206300,1206301,1206302,1206303,1206304,1206305,1206306,1206307,1206308,1206309,1206310,1206311,1206312,1206313',\n  2 => '1',\n  3 => '1',\n  4 => '',\n  5 => '1',\n  6 => '',\n  7 => '1',\n  8 => '',\n  9 => '1',\n  10 => 'ABCD',\n  11 => '0',\n  12 => 360238,\n)]\nError code: dmlwriteexception\n* line 429 of /lib/dml/moodle_database.php: dml_write_exception thrown\n* line 1107 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()\n* line 1149 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()\n* line 86 of /question/type/multichoice/backup/moodle2/restore_qtype_multichoice_plugin.class.php: call to mysqli_native_moodle_database->insert_record()\n* line 131 of /backup/util/plan/restore_structure_step.class.php: call to restore_qtype_multichoice_plugin->process_multichoice()\n* line 103 of /backup/util/helper/restore_structure_parser_processor.class.php: call to restore_structure_step->process()\n* line 151 of /backup/util/xml/parser/processors/grouped_parser_processor.class.php: call to restore_structure_parser_processor->dispatch_chunk()\n* line 91 of /backup/util/helper/restore_structure_parser_processor.class.php: call to grouped_parser_processor->postprocess_chunk()\n* line 148 of /backup/util/xml/parser/processors/simplified_parser_processor.class.php: call to restore_structure_parser_processor->postprocess_chunk()\n* line 92 of /backup/util/xml/parser/processors/progressive_parser_processor.class.php: call to simplified_parser_processor->process_chunk()\n* line 169 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser_processor->receive_chunk()\n* line 253 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->publish()\n* line ? of unknownfile: call to progressive_parser->end_tag()\n* line 158 of /backup/util/xml/parser/progressive_parser.class.php: call to xml_parse()\n* line 137 of /backup/util/xml/parser/progressive_parser.class.php: call to progressive_parser->parse()\n* line 105 of /backup/util/plan/restore_structure_step.class.php: call to progressive_parser->process()\n* line 153 of /backup/util/plan/base_task.class.php: call to restore_structure_step->execute()\n* line 167 of /backup/util/plan/base_plan.class.php: call to base_task->execute()\n* line 157 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()\n* line 315 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()\n* line 147 of /backup/util/ui/restore_ui.class.php: call to restore_controller->execute_plan()\n* line 46 of /backup/restore.php: call to restore_ui->execute()\n, referer: http://moodle.capilanou.ca/backup/restore.php

[Fri Jan 17 14:28:06 2014] [error] [client xxxx] Potential coding error - existing temptables found when disposing database. Must be dropped!, referer: http://moodle.capilanou.ca/backup/restore.php


Viewing all articles
Browse latest Browse all 6586

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>