by Iván Yivoff.
The exception is thrown because it can't find the 'enrol_migratetomanual' setting.
On CourseRestore.php:158-161 (on the moosh side) we have this:
foreach ($tasks as &$task) {On the first iteration, when getting the 'enrol_migratetomanual' for the 'root_task' (whatever that is), it ends up calling get_setting() on the base_task class.
$setting = $task->get_setting('enrol_migratetomanual');
$setting->set_value('1');
}
It fails to find the setting both on the "task" and on the "plan", and throws and exception, which bubbles up and shorts exeution.
I guess that the question is: what is this setting, and how and where can I set it so this restore task works properly???