← Back to team overview

mahara-contributors team mailing list archive

[Bug 1980291] A change has been merged

 

Reviewed:  https://reviews.mahara.org/c/mahara/+/13036
Committed: https://git.mahara.org/mahara/mahara/commit/8470082b6b24ffcbf49acbf7a36a6af438746388
Submitter: "Doris Tam <doristam@xxxxxxxxxxxxxxx>"
Branch:    22.04_DEV

commit 8470082b6b24ffcbf49acbf7a36a6af438746388
Author: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Date:   Thu Jun 30 10:39:25 2022 +1200

Bug 1980291: Tidy up 'file_cleanup_old_temp_files' function

So it stop throwing an error

Change-Id: Ibf2ba9b236674b4981131b583a8c28ea285a1741
Signed-off-by: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
(cherry picked from commit 23eb500ef4d4e36f4395848c776a77740abb00c2)

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1980291

Title:
  file_cleanup_old_temp_files() causing an error

Status in Mahara:
  Fix Committed
Status in Mahara 22.04 series:
  Fix Committed
Status in Mahara 22.10 series:
  Fix Committed

Bug description:
  The following is appearing in the logs when cron runs

  [WAR] 7e (lib/file.php:973) Undefined offset: 0
  Call stack (most recent first):
  • log_message(string(size 19), integer, true, true, string(size 33), integer) at /var/www/html/mahara/lib/errors.php:515
  • error(integer, string(size 19), string(size 33), integer, array(size 3)) at /var/www/html/mahara/lib/file.php:973
  • file_cleanup_old_temp_files() at /var/www/html/mahara/lib/cron.php:201

  This is caused by some incorrect code

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1980291/+subscriptions



References