Page MenuHomePhabricator

Failed to find the method of mkdir in file */includes/HTMLFileCache.php
Closed, InvalidPublic

Description

Author: guoqiang.nie

Description:
Get the following error message from log:
[09-May-2008 00:35:55] PHP Warning: mkdir() [<a href='function.mkdir'>function.mkdir</a>]: No such file or directory in /MYDIR/wiki/includes/HTMLFileCache.php on line 114
[09-May-2008 00:35:55] PHP Warning: mkdir() [<a href='function.mkdir'>function.mkdir</a>]: No such file or directory in /MYDIR/wiki/includes/HTMLFileCache.php on line 115

Seems like that in the file of HTMLFileCache.php, calling mkdir failed.
function checkCacheDirs() {

$filename = $this->fileCacheName();
$mydir2=substr($filename,0,strrpos($filename,'/')); # subdirectory level 2
$mydir1=substr($mydir2,0,strrpos($mydir2,'/')); # subdirectory level 1

THIS LINE if(!file_exists($mydir1)) { mkdir($mydir1,0775); } # create if necessary

AND THIS LINE if(!file_exists($mydir2)) { mkdir($mydir2,0775); }

}

Version: 1.12.x
Severity: normal
OS: Linux
Platform: Other

Details

Reference
bz14046

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:11 PM
bzimport added a project: MediaWiki-API.
bzimport set Reference to bz14046.

Sounds like you need to create the base directory.