Installing and upgrading help

Upgrade from 1.9.3+ to 2.2.11 Fails

This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.
Picture of Ogi Chikov
Upgrade from 1.9.3+ to 2.2.11 Fails

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:


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: -
Re: Upgrade from 1.9.3+ to 2.2.11 Fails

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.

See also:

Average of ratings: -
Picture of Ogi Chikov
Re: Upgrade from 1.9.3+ to 2.2.11 Fails

Thank you. I will try.

Average of ratings: -