Quantcast
Channel: Installing and upgrading help
Viewing all articles
Browse latest Browse all 47485

error upgrading from 19 to 2.2 quiz attempts

$
0
0
by Fabio Cacciatori.  

while upgrading quiz attempts i get the following problem, can you help me?

Fabio

mod_quiz

Upgrading quiz attempts: quiz 1/146 (Quiz id 5)

1.8 sec

 0.68%

..........

Error writing to database

More information about this error

Debug info: Duplicate entry '10850-1' for key 'mdl_quesatte_queslo_uix'
INSERT INTO mdl_question_attempts (questionid,variant,behaviour,questionsummary,rightanswer,maxmark,minfraction,flagged,responsesummary,timemodified,questionusageid,slot) VALUES(?,?,?,?,?,?,?,?,?,?,?,?)
[array (
0 => '354',
1 => 1,
2 => 'adaptive',
3 => 'E\' possibile lavorare con lo strumento Sostituzione Colore su un livello trasparente?',
4 => 'No',
5 => '1.0000000',
6 => 0,
7 => 0,
8 => 'No',
9 => '1305929410',
10 => '10850',
11 => 1,
)]
Stack trace:
  • line 397 of /lib/dml/moodle_database.php: dml_write_exception thrown
  • line 973 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 1015 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
  • line 300 of /question/engine/upgrade/upgradelib.php: call to mysqli_native_moodle_database->insert_record()
  • line 254 of /question/engine/upgrade/upgradelib.php: call to question_engine_attempt_upgrader->insert_record()
  • line 222 of /question/engine/upgrade/upgradelib.php: call to question_engine_attempt_upgrader->save_usage()
  • line 177 of /question/engine/upgrade/upgradelib.php: call to question_engine_attempt_upgrader->convert_quiz_attempt()
  • line 132 of /question/engine/upgrade/upgradelib.php: call to question_engine_attempt_upgrader->update_all_attempts_at_quiz()
  • line 1112 of /mod/quiz/db/upgrade.php: call to question_engine_attempt_upgrader->convert_all_quiz_attempts()
  • line 540 of /lib/upgradelib.php: call to xmldb_quiz_upgrade()
  • line 271 of /lib/upgradelib.php: call to upgrade_plugins_modules()
  • line 1437 of /lib/upgradelib.php: call to upgrade_plugins()
  • line 269 of /admin/index.php: call to upgrade_noncore()
 

Viewing all articles
Browse latest Browse all 47485

Latest Images

Trending Articles



Latest Images

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