Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0
-
Fix Version/s: None
-
Component/s: Backup
-
Labels:None
-
Affected Branches:MOODLE_20_STABLE
Description
Cannot execute a course backup in the current version of 2.0.
Clicking on the backup link generates the error:
Coding error detected, it must be fixed by a programmer: The theme has already been set up for this page ready for output. Therefore, you can no longer change the theme, or anything that might affect what the current theme is, for example, the course. More information about this error Debug info: Stack trace when the theme was set up: <ul style="text-align: left"><li>line 872 of /lib/setuplib.php: call to moodle_page->initialise_theme_and_output()</li><li>line ? of unknownfile: call to bootstrap_renderer->__call()</li><li>line 106 of /backup/backup.php: call to bootstrap_renderer->header()</li></ul> Stack trace: * line 1271 of /lib/pagelib.php: coding_exception thrown * line 602 of /lib/pagelib.php: call to moodle_page->ensure_theme_not_set() * line 2090 of /lib/moodlelib.php: call to moodle_page->set_course() * line 6 of /backup/backup_form.html: call to require_login() * line 127 of /backup/backup.php: call to include_once()
Hi Mike,
while we are merging all the changes and improvements from 19_STABLE to HEAD to have all them there... backup & restore is going to have a big refactor for 2.0, so don't expect to have it working soon
Lots of stuff (I guess) can be failing there right now or perhaps only a few things... but I don't think having current implementation working is a good idea... uhm...