Hi
I know very little of Moodle, I don't use Moodle, I just look after the backend servers.
I tried upgrading from 3.11 to 4.1 for a client. The upgraded appeared to run ok without issues. However, one of the tutors had an issue trying to access courses. Since there is no one I can ask for help until the new year, I tried to roll back the upgrade.
I restored all the files in moodle and moodledata folder and restored the backup.sql file, I tried to take the site out of maintenance mode, but came up with the following error and I can't get the original site working now.
The site is running on a Windows Server 2016, with IIS and PHP 7.4.9 and MySQL 5.7.35
I have managed to get this debug information
Error
Debug info: SELECT * FROM {context} WHERE contextlevel = ?
[array (
0 => 10,
)]
Error code: invalidrecord
[array (
0 => 10,
)]
Error code: invalidrecord
Stack trace:
Can anyone help me getting the site back online.- line 1646 of \lib\dml\moodle_database.php: dml_missing_record_exception thrown
- line 1622 of \lib\dml\moodle_database.php: call to moodle_database->get_record_select()
- line 6310 of \lib\accesslib.php: call to moodle_database->get_record()
- line 758 of \lib\setup.php: call to context_system::instance()
- line 32 of \config.php: call to require_once()
- line 3 of \admin\settings.php: call to require_once()
Thanks
Bill