-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.1.12, 4.4
-
MOODLE_401_STABLE, MOODLE_404_STABLE
-
MDL-83186-bigbluebutton
I'm getting this error when updating the recordings from cli, using migrate_recordings.php
PHP Notice: Error: mdb->get_record() found more than one record!
|
* line 1696 of /lib/dml/moodle_database.php: call to debugging()
|
* line 1757 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql() *
|
* line 1738 of /lib/dml/moodle_database.php: call to moodle_database->get_field_sql() *
|
* line 1717 of /lib/dml/moodle_database.php: call to moodle_database->get_field_select() *
|
* line 223 of /mod/bigbluebuttonbn/classes/instance.php: call to moodle_database->get_field() *
|
* line 89 of /mod/bigbluebuttonbn/classes/task/upgrade_recordings_task.php: call to mod_bigbluebuttonbn\instance::get_from_meetingid() *
|
* line 43 of /mod/bigbluebuttonbn/classes/task/upgrade_recordings_task.php: call to mod_bigbluebuttonbn\task\upgrade_recordings_task->process_bigbluebuttonbn_logs() *
|
* line 135 of /mod/bigbluebuttonbn/cli/migrate_recordings.php: call to mod_bigbluebuttonbn\task\upgrade_recordings_task->execute() in /var/www/html/forum/lib/weblib.php on line 3392
|
This in turn is because we used extensively course duplication the meetingid seems the same for all the bbb activities we have duped from one course to another, and later the upgrade process in classes/task/upgrade_recordings_task.php tries to use get_field to find an unique meetingid, and that is not the case for many of them, our solution involves using the parsing from the instance and not try to get the instance from the meetingid prefix instead from the instanceid embedded in the recording meetingid..