Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-60318

Cron - PHP Fatal error: Call to undefined method file_storage::move_to_trash()

    XMLWordPrintable

    Details

      Description

      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

       

       

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Nov/17