-
Bug
-
Resolution: Fixed
-
Critical
-
3.3.1, 3.4
-
MOODLE_33_STABLE, MOODLE_34_STABLE
-
MOODLE_33_STABLE
-
m34_
MDL-60318_Undefined_method_file_storage-move_to_trash -
When executing the scheduled task core\task\portfolio_cron_task sometimes we get the following error in the cron log: PHP Fatal error: Call to undefined method file_storage::move_to_trash() in /moodle/lib/filestorage/file_storage.php on line 1427
We got this error after the upgrade to 3.3.1 version. The cron was blocked and our workaround was disabling the scheduled task and enable it one day after the problem.
After looking at the code we found that the function move_to_trash() doesn't exist. The change was added in this commit: https://git.moodle.org/gw?p=moodle.git;a=commitdiff;h=16a34ae1892014a6ca3055a95ac7310442529a6c
- is a regression caused by
-
MDL-46375 Move file-system specific components of file_storage and stored_file to new overridable API
- Closed