Topic on Project:Support desk

Unable to create the folder "mwstore://local-backend/local-public/f/fc"

6
Lorenzone92 (talkcontribs)

Hi guys. I updated my MW 1.16 to 1.19 and run the update.php script from command line. Everything works except displaying of images and uploads. Uploads don't work! I keep getting this error every time I try to upload a file: Unable to create the folder "mwstore://local-backend/local-public/x/XXX"

I didn't set any of these variables $wgTmpDirectory, $wgUploadDirectory, $wgUploadPath. They're all set to their default values. My /includes/DefaultSettings.php is untouched and my LocalSettings hasn't variables regarding file uploads (except EnableUploads set to true). My /images folder is set to 777 as well as its subdirectories (/images/tmp too). It's just weird. Seems a permissions issue but the folder is chmodded to 777, owned by www-data and everything!

After I added $wgShowExceptionDetails = true; I got this results:

Error storing file in '/tmp/phpxdixN7.jpg': Could not create directory "$1". Backtrace:

  1. 0 /var/www/rockciclopedia.com/htdocs/wiki/includes/upload/UploadBase.php(746): UploadStash->stashFile('/tmp/phpxdixN7', 'file')
  2. 1 /var/www/rockciclopedia.com/htdocs/wiki/includes/upload/UploadBase.php(757): UploadBase->stashFile()
  3. 2 /var/www/rockciclopedia.com/htdocs/wiki/includes/upload/UploadBase.php(766): UploadBase->stashFileGetKey()
  4. 3 /var/www/rockciclopedia.com/htdocs/wiki/includes/specials/SpecialUpload.php(336): UploadBase->stashSession()
  5. 4 /var/www/rockciclopedia.com/htdocs/wiki/includes/specials/SpecialUpload.php(427): SpecialUpload->showUploadWarning(Array)
  6. 5 /var/www/rockciclopedia.com/htdocs/wiki/includes/specials/SpecialUpload.php(174): SpecialUpload->processUpload()
  7. 6 /var/www/rockciclopedia.com/htdocs/wiki/includes/SpecialPageFactory.php(476): SpecialUpload->execute(NULL)
  8. 7 /var/www/rockciclopedia.com/htdocs/wiki/includes/Wiki.php(263): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
  9. 8 /var/www/rockciclopedia.com/htdocs/wiki/includes/Wiki.php(593): MediaWiki->performRequest()
  10. 9 /var/www/rockciclopedia.com/htdocs/wiki/includes/Wiki.php(503): MediaWiki->main()
  11. 10 /var/www/rockciclopedia.com/htdocs/wiki/index.php(58): MediaWiki->run()
  12. 11 {main}

Also $wgScriptPath is commented (so default value)! Is this a bug? Please help me! Thx in advance!

219.133.170.43 (talkcontribs)
24.114.255.83 (talkcontribs)

I am having the same issue but running windows server.... added Full Control to permissions no change

Bawolff (talkcontribs)

Do you have the exact same error (key points does it precisely say Error storing file in '/tmp...) (Asking because the temp file path should not start with /tmp on windows, only on unix-based os's.

94.175.211.243 (talkcontribs)

Hi

I dont have any www-data user and I have tried with apache user. But no success. Any idea please?

Thanks

Mahmood

Ciencia Al Poder (talkcontribs)

find what's the user running apache. You can usually get that looking at the list of processes running on the machine.

Reply to "Unable to create the folder "mwstore://local-backend/local-public/f/fc""