Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6619

Re: restore backups fails with setting_by_name_not_found

$
0
0

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) {
$setting = $task->get_setting('enrol_migratetomanual');
$setting->set_value('1');
}
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.

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??? black eye


Viewing all articles
Browse latest Browse all 6619

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>