Hello,
I've been moving a moodle 2.4.5 site from one hosting company to another using CPanel (shared hosting). Everything worked. I even upgraded respectively to versions 2.7 and 3.1 without many difficulties.
The next upgrade to 3.5 does not work so well. The process started and stuck to this:
Upgrading to new version
INSERT INTO mdl_course_sections (course,section,summary,summaryformat,sequence,name,visible,availability,timemodified) VALUES(?,?,?,?,?,?,?,?,?)
[array (
0 => 530,
1 => 1,
2 => '',
3 => '1',
4 => '',
5 => NULL,
6 => 1,
7 => NULL,
8 => 1610472992,
)]
Error code: dmlwriteexception
- line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 1329 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1375 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
- line 871 of /course/lib.php: call to mysqli_native_moodle_database->insert_record()
- line 142 of /course/format/topics/db/upgradelib.php: call to course_create_section()
- line 80 of /course/format/topics/db/upgradelib.php: call to format_topics_upgrade_add_empty_sections()
- line 41 of /course/format/topics/db/upgrade.php: call to format_topics_upgrade_remove_numsections()
- line 632 of /lib/upgradelib.php: call to xmldb_format_topics_upgrade()
- line 1857 of /lib/upgradelib.php: call to upgrade_plugins()
- line 694 of /admin/index.php: call to upgrade_noncore()