-
Bug
-
Resolution: Won't Fix
-
Minor
-
None
-
2.1.3, 2.2.2, 2.3
-
MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
Discussion at http://moodle.org/mod/forum/discuss.php?d=200428
I upload the file, click restore, and get presented with the error under step 1. Confirm:
error/wrong_setting_level_moodle_backup_xml_file
The restore is dying because the file moodle_backup.xml has some invalid 'levels' in lines like this:
<moodlebackup>
...
<information>
...
<settings>
...
<setting>
<level>local</level>
<name>pld_logs_included</name>
<value>0</value>
</setting>
If you edit backup/util/helper/backup_general_helper.php in the function get_backup_information() line ~204 says
throw new backup_helper_exception('wrong_setting_level_moodle_backup_xml_file', $setting['level']);
Add the first line below and comment out that "throw new..." line like this:
continue; //added this line to prevent stopping on <level>local</level>
//throw new backup_helper_exception('wrong_setting_level_moodle_backup_xml_file', $setting['level']);
The backup will happily chug along now. Tested in 2.1.3 (Build 20111128) (201170103).
- has been marked as being related by
-
MDL-22147 backup: local extensions
-
- Closed
-