Error: mdb->get_record() found more than one record!

Error: mdb->get_record() found more than one record!

by Farhad Fataev -
Number of replies: 6
Hello! 
When backing up the course, I get this error

Error: mdb->get_record() found more than one record!
  • line 1691 of /lib/dml/moodle_database.php: call to debugging()
  • line 1651 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
  • line 229 of /backup/util/helper/async_helper.class.php: call to moodle_database->get_record_select()
  • line 119 of /backup/backup.php: call to async_helper::is_async_pending() Preparing a backup for this resource
moodle 4.1 mysql ubuntu Whats wrong with my moodle?
Average of ratings: -
In reply to Farhad Fataev

Re: Error: mdb->get_record() found more than one record!

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Moodle version?

When does this happen? Anything similar to https://moodle.org/mod/forum/discuss.php?d=446289. (No, I don't know more that what is written there.)

It that all what you get with Debugging level set to its maximum.
In reply to Visvanath Ratnaweera

Re: Error: mdb->get_record() found more than one record!

by Farhad Fataev -
Moodle version 4.1
It happen when teacher to make backuped course.
Yes, it's maximum from Debugging.
I think, teacher created course on base a other
Thank for your help.
In reply to Farhad Fataev

Re: Error: mdb->get_record() found more than one record!

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
I can't offer you any help. I'm having my version of the same problem. Sorry!

May be the posts by Emma Richardson in the discussion I linked will give you hints where to look.
In reply to Farhad Fataev

Re: Error: mdb->get_record() found more than one record!

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

This looks like MDL-70746. From reading the comments in Tracker it looks like this is not a serious error. There is a proposed fix for Moodle 3.9 which you could try applying.

Also, from the line numbers in your error it looks like you have Moodle 4.1.0. You should update to the latest 4.1 version (currently 4.1.3) as you are missing four months of bug fixes and security updates.

Average of ratings:Useful (1)