-
Bug
-
Resolution: Fixed
-
Critical
-
2.6
-
MOODLE_26_STABLE
-
MOODLE_26_STABLE
-
MDL-41817-master -
-
This is a regression introduced by MDL-38190.
When backup (or restore) controller is instantiated, its overall plan, aka, the list of tasks that will be part of it, is created (see backup_plan_builder::build_plan()).
Each block in the course/activity being included in that backup has its own, unconditional task.
Later, the "blocks" setting decides if those tasks are built or no, aka, if steps are added to them or no.
The newly introduced progress bar assumes that all tasks must have at least 1 step and that's not true for block tasks when the "blocks" setting is disabled.
To reproduce:
- Backup any course or activity with the "blocks" setting disabled. No matter it is an interactive backup or no, the process fails with:
Coding error detected, it must be fixed by a programmer: start_progress() max value cannot be zero or negative
|
|
More information about this error
|
|
Debug info:
|
Error code: codingerror
|
Stack trace:
|
line 91 of /backup/util/progress/core_backup_progress.class.php: coding_exception thrown
|
line 176 of /backup/util/plan/base_task.class.php: call to core_backup_progress->start_progress()
|
line 173 of /backup/util/plan/base_plan.class.php: call to base_task->execute()
|
line 120 of /backup/util/plan/backup_plan.class.php: call to base_plan->execute()
|
line 349 of /backup/controller/backup_controller.class.php: call to backup_plan->execute()
|
line 111 of /backup/util/ui/backup_ui.class.php: call to backup_controller->execute_plan()
|
line 108 of /backup/backup.php: call to backup_ui->execute()
|
That's it. Or we disable that coding check, or delete the "empty" tasks, or make an exception for block ones.
Ciao
- blocks
-
MDL-41669 Restore: Progress bar needs to include more tasks
- Closed
- has a QA test
-
MDL-42363 Acceptance tests for backup and restore of courses without blocks (MDL-41817)
- Closed
- is a regression caused by
-
MDL-38190 Backup and restore operations should display progress
- Closed
- is duplicated by
-
MDL-41706 Backup and Restore fails for a limited operation.
- Closed