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

Error renaming localcachedir monologo.svg since Moodle 4.2

XMLWordPrintable

    • MOODLE_402_STABLE, MOODLE_403_STABLE, MOODLE_404_STABLE

      Since Moodle 4.2 (see MDL-77758, problem E) and confirmed/expanded when examining logs as part of the PHP 8.2 epic (see MDL-76407, problems D and E), we are getting the following in web server logs:

      1. For course/modedit.php (36 times):

      35014:[Fri Jul 28 06:35:58.857171 2023] [php:notice] [pid 427] [client 192.168.80.14:34604] Default exception handler: Exception - Warning: rename([localcachedir]/theme/1690526055/boost/pix/assign/monologo.svg.tmp,[localcachedir]/theme/1690526055/boost/pix/assign/monologo.svg): No such file or directory in [dirroot]/theme/image.php on line 319 Debug:
      Error code: generalexceptionmessage

      2. For course/view.php (9 times):

      381570:[Fri Jul 28 07:09:38.656181 2023] [php:notice] [pid 990] [client 192.168.16.6:57006] Default exception handler: Exception - Warning: rename([localcachedir]/theme/1690526082/classic/pix/forum/monologo.svg.tmp,[localcachedir]/theme/1690526082/classic/pix/forum/monologo.svg): No such file or directory in [dirroot]/theme/image.php on line 319 Debug:
      Error code: generalexceptionmessage

      I've been unable to reproduce it locally but in CI behat runs it happens consistently. Maybe it's some caching race conditions or similar because the # of occurrences is not constant.

      This issue is about to investigate why it's happening and fix the problem.

      Ciao

            Unassigned Unassigned
            stronk7 Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

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