Topic on Project:Support desk

Jump to navigation Jump to search
Jenkins1967 (talkcontribs)

I really need help here. I've had mediawiki install for almost a year. All is good, but today, image uploading stopped working. When I hit submit, I get this at the top of the page: Warning: wfMkdirParents: failed to mkdir "D:\Hosting\10143616\html\wiki\images\f\fb" mode 0777 in D:\Hosting\10143616\html\wiki\includes\GlobalFunctions.php on line 2582

And I get this upload warning: Could not create directory "mwstore://local-backend/local-public/f/fb".

Here's my version info: MediaWiki 1.21.1 PHP 5.3.6 (cgi-fcgi) MySQL 5.0.96-log

I'm hosted in a shared account on The server is Windows. I need help diagnosing and solving this problem. Thanks!

Temptuousinsolence (talkcontribs)
 if ( !$ok ) {
                //directory may have been created on another request since we last checked
                if ( is_dir( $dir ) ) {
                        return true;

                // PHP doesn't report the path in its warning message, so add our own to aid in diagnosis.
                wfLogWarning( sprintf( "failed to mkdir \"%s\" mode 0%o", $dir, $mode ) );

This indicates that MW attempts to create a folder that already exists. Could you check this, please?

Ciencia Al Poder (talkcontribs)

The wfLogWarning is outside the if ( is_dir( $dir ) ) {, so the directory doesn't exist, but it failed to create it.

The problem may be permissions on the parent directory (maybe if you imported images somehow, or did any permission change in the directory structure).

Alternatively, try creating the folder manually, to see if you ran into some resource limit on the server (like a maximum allowed number of folders/files, etc)

Jenkins1967 (talkcontribs)

Before this problem, I changed absolutly nothing. Of course, that doesn't mean that godaddy didn't somehow. In an attempt to fix the problem, I did chmod 777 on the entire wiki folder. Still nothing. Through FTP, I am able to create a directory within the images directory without issue. (talkcontribs)

I attempted another upload. The directory that it tried to make was \0\06. It failed and it does not exist.

Reply to "Can no longer upload files"