Upgrade from 1.9.3+ to 2.2.11 Fails

Upgrade from 1.9.3+ to 2.2.11 Fails

by Ogi Chikov -
Number of replies: 2

Hello, i try to upgrade moodle 1.9.3+ to 2.2.11 and the process is fail. First there were issues with some Extend modules that I removed but now the upgrade process show error:

System

Debug info: Table 'moodle.mdl_question' doesn't exist
UPDATE mdl_question SET parent = id WHERE qtype = 'random' AND parent <> id
[array (
)]
Stack trace:
  • line 397 of \lib\dml\moodle_database.php: dml_write_exception thrown
  • line 802 of \lib\dml\mysqli_native_moodle_database.php: call to moodle_database->query_end()
  • line 42 of \question\upgrade.php: call to mysqli_native_moodle_database->execute()
  • line 204 of \lib\db\upgrade.php: call to question_fix_random_question_parents()
  • line 1394 of \lib\upgradelib.php: call to xmldb_main_upgrade()
  • line 236 of \admin\index.php: call to upgrade_core()

 

 

 

 

Any suggestion on this? I'm not very good at PHP and MySQL.

Thank you in advance!

Average of ratings: -
In reply to Ogi Chikov

Re: Upgrade from 1.9.3+ to 2.2.11 Fails

by Guillermo Madero -

Hi Ogi,

You first need to upgrade to the latest 1.9 version (1.9.19+) because the upgrade from 1.9.3 to 2.x cannot be done in one step.

http://docs.moodle.org/19/en/Upgrading

http://docs.moodle.org/20/en/Upgrading

See also:

https://moodle.org/mod/forum/discuss.php?d=233706#p1015248