Moodle-Version: 4.1.9 PHP-Version: 8.1 Database: Postgres Iff we set in config.php: $CFG->forced_plugin_settings['restore'] = array( 'restore_general_users' => 0, 'restore_general_users_locked' => 1 ); We get the following error on course restore: 
Moodle-Version: 4.1.9
PHP-Version: 8.1
Database: Postgres
Iff we set in config.php:
$CFG->forced_plugin_settings['restore'] = array(
'restore_general_users' => 0,
'restore_general_users_locked' => 1
);
We get the following error on course restore: