-
Bug
-
Resolution: Fixed
-
Minor
-
3.7.3, 3.8.1, 3.9
-
MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
-
MOODLE_37_STABLE, MOODLE_38_STABLE
-
Description:
When deleting contents and restoring into a course, if a user clicks the 'restore page' link in the given message (async backup/restore) an error is generated
Prerequisites:
Asynchronous backup/restore enabled in <site>/admin/settings.php?section=asyncgeneralsettings
Go any course and run a full backup to generate an MBZ file
Steps to replicate:
- Access a course
- Course Administration>Restore>Drag and drop the backup file
- Click on Restore
- Click on Continue
- Select the option 'Delete the contents of this course then restore' option under 'Restore into this course' and click on Continue
- Click on Next, Next, Perform restore.
- In the message below, click on the hyperlink 'Restore page' while the restore is pending
Observed result:
Error message appears
error/setting_by_name_not_found
More information about this error
×Debug info:
Error code: setting_by_name_not_found
$a contents: filename
×Stack trace:
line 124 of /backup/util/plan/base_plan.class.php: base_plan_exception thrown
line 314 of /backup/util/helper/async_helper.class.php: call to base_plan->get_setting()
line 606 of /backup/util/ui/renderer.php: call to async_helper::get_async_backups()
line 462 of /lib/outputrenderers.php: call to core_backup_renderer->render_backup_files_viewer()
line 541 of /backup/util/ui/renderer.php: call to plugin_renderer_base->render()
line 166 of /backup/restorefile.php: call to core_backup_renderer->backup_files_viewer()
Expected result:
Page appears with status of the restore