Last modified: 2010-05-15 15:54:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T16046, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14046 - Failed to find the method of mkdir in file */includes/HTMLFileCache.php
Failed to find the method of mkdir in file */includes/HTMLFileCache.php
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.12.x
Other Linux
: Normal normal (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-08 16:56 UTC by Nie Guoqiang
Modified: 2010-05-15 15:54 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nie Guoqiang 2008-05-08 16:56:53 UTC
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); }
        }
Comment 1 Brion Vibber 2008-05-08 20:26:52 UTC
Sounds like you need to create the base directory.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links