-
Bug
-
Resolution: Fixed
-
Minor
-
3.3.2
-
MOODLE_33_STABLE
-
MOODLE_33_STABLE, MOODLE_34_STABLE
-
To reproduce:
- Log in as admin
- Ensure developer debug is on
- Inside moodledata, add an extra file to any cache folder like cache/cachestore_file/default_application/core_config, add a file that the web server does not have permission to delete.
- Go to Admin -> Development -> Purge all caches and click the button.
Expected behaviour:
Warning: rmdir(C:\Temp\moodledata_head/cache/cachestore_file/default_application): Directory not empty in C:\Users\tjh238\workspace\moodle_head\lib\moodlelib.php on line 9221
|
|
Warning: rmdir(C:\Temp\moodledata_head/cache/cachestore_file): Directory not empty in C:\Users\tjh238\workspace\moodle_head\lib\moodlelib.php on line 9221
|
|
All caches were purged.
|
(Continue)
|
|
Error output, so disabling automatic redirect.
|
Actual result: Also includes this error:
This page did not call $PAGE->set_url(...). Using http://127.0.0.1/moodle_head/admin/purgecaches.php
|
|
line 600 of \lib\pagelib.php: call to debugging()
|
line 820 of \lib\pagelib.php: call to moodle_page->magic_get_url()
|
line 565 of \admin\tool\usertours\classes\manager.php: call to moodle_page->__get()
|
line 505 of \admin\tool\usertours\classes\helper.php: call to tool_usertours\manager::get_current_tour()
|
line 75 of \admin\tool\usertours\lib.php: call to tool_usertours\helper::bootstrap()
|
line 1279 of \lib\outputrenderers.php: call to tool_usertours_before_footer()
|
line 1134 of \lib\outputrenderers.php: call to core_renderer->footer()
|
line 1845 of \lib\setuplib.php: call to core_renderer->redirect_message()
|
line 2863 of \lib\weblib.php: call to bootstrap_renderer->__call()
|
line 44 of \admin\purgecaches.php: call to redirect()
|