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

admin/purgecaches.php incorrectly complains directory does not exist

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0.4, 2.1.1
    • 2.0.3, 2.1, 2.2
    • Libraries
    • moodle.org

      I get the following PHP Warnings in error_log and in browser (debug mode on) when purging caches:

      PHP Warning:  Base directory /var/www/vhosts/moodle.org/data/cache/htmlpurifier does not exist,\n                    please create or change using %Cache.SerializerPath in /var/www/vhosts/moodle.org/html/lib/htmlpurifier/HTMLPurifier/DefinitionCache/Serializer.php on line 133, referer: http://moodle.org/admin/purgecaches.php

      However this directory exists and is read & writable by the Apache user id.

      # ls -hld /var/www/vhosts/moodle.org/data/cache/htmlpurifier
      drwxrwxr-x 3 apache apache 4.0K Jul  3 13:46 /var/www/vhosts/moodle.org/data/cache/htmlpurifier
       
      # ls -hl /var/www/vhosts/moodle.org/data/cache/htmlpurifier
      total 4.0K
      drwxrwxr-x 2 apache apache 4.0K Jul  3 13:46 HTML

            skodak Petr Skoda
            jtomkinson Jordan Tomkinson
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Sam Hemelryk Sam Hemelryk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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