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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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