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

admin/purgecaches.php incorrectly complains directory does not exist

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.3, 2.1, 2.2
    • Fix Version/s: 2.0.4, 2.1.1
    • Component/s: Libraries
    • Labels:
    • Environment:
      moodle.org

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            jtomkinson Jordan Tomkinson
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            Sam Hemelryk
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              1/Aug/11