-
Bug
-
Resolution: Fixed
-
Critical
-
2.3, 2.4
-
MOODLE_23_STABLE, MOODLE_24_STABLE
-
MOODLE_23_STABLE
-
Error Message :
Default exception handler: Error reading from database Debug: Unknown column 'retrictmodules' in 'where clause'
SELECT id, 1 FROM mdl_course WHERE retrictmodules = ? ORDER BY id
[array (
0 => 1,
)]
Error code: dmlreadexception
- line 407 of \lib\dml\moodle_database.php: dml_read_exception thrown
- line 864 of \lib\dml\mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1166 of \lib\dml\moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
- line 1113 of \lib\dml\moodle_database.php: call to moodle_database->get_records_select()
- line 1206 of \lib\dml\moodle_database.php: call to moodle_database->get_records()
- line 251 of \lib\db\upgrade.php: call to moodle_database->get_records_menu()
- line 1481 of \lib\upgradelib.php: call to xmldb_main_upgrade()
- line 275 of \admin\index.php: call to upgrade_core()
============================================================================
Part source codes of \lib\db\upgrade.php as follow.
if ($oldversion < 2012031500.01) {
// Upgrade old course_allowed_modules data to be permission overrides.
if ($CFG->restrictmodulesfor === 'all')
else if ($CFG->restrictmodulesfor === 'requested')
{ $courses = $DB->get_records_menu('course', array('retrictmodules' => 1), 'id', 'id, 1'); }else
{ $courses = array(); }=============================================================================
'retrictmodules' need replace by 'restrictmodules'.
- is a regression caused by
-
MDL-19125 New addinstance capabilities for activity modules to replace the old complicated course restricted modules
-
- Closed
-