"Multiple records found, only one record expected" during upgrade to 2.0.1+

Re: "Multiple records found, only one record expected" during upgrade to 2.0.1+

by David Mudrák -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators
Hi Markus

on contrary to previous posts above, your problem has nothing to do with the Workshop module. Your Moodle database is corrupted though. There are multiple records for the system context found, whereas only a single record is expected. I can't explain how this could happen to you, or how to fix it.

If you don't have many courses, a good alternative might be to install a fresh new Moodle and backup/restore every course to it.