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

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

XMLWordPrintable

      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

       

       

            matteo Matteo Scaramuccia
            ardanzap Paula Ardanza Menendez
            Ankit Agarwal Ankit Agarwal
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Marina Glancy Marina Glancy
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.