Hi, I'm testing the upgrade from 1.9.8 to 2.0.1 and am hitting this error. I cannot uninstall Workshop from my existing Moodle install, and am trying to do an upgrade to 2.0.1 by migrating the data to a new 2.0.1 instance and letting Moodle do the database and moodledata upgrade. Any thoughts on how to solve this? We do have some Workshop data in Moodle, but I'm willing to drop it all for a successful upgrade.
Thanks so much for considering this issue,
-jonathan king
mod_workshop
Copying submissions
Multiple records found, only one record expected.
More information about this error
Debug info: SELECT cm.*, m.name, md.name AS modname
FROM {course_modules} cm
JOIN {modules} md ON md.id = cm.module
JOIN {workshop} m ON m.id = cm.instance
WHERE m.id = :instance AND md.name = :modulename
[array (
'instance' => '8',
'modulename' => 'workshop',
)]
Stack trace: line 1266 of \lib\dml\moodle_database.php: dml_multiple_records_exception thrown
line 1407 of \lib\datalib.php: call to moodle_database->get_record_sql()
line 253 of \mod\workshop\db\upgradelib.php: call to get_coursemodule_from_instance()
line 124 of \mod\workshop\db\upgrade.php: call to workshop_upgrade_submissions()
line 490 of \lib\upgradelib.php: call to xmldb_workshop_upgrade()
line 265 of \lib\upgradelib.php: call to upgrade_plugins_modules()
line 1352 of \lib\upgradelib.php: call to upgrade_plugins()
line 290 of \admin\index.php: call to upgrade_noncore()