Topic on Project:Support desk

[RESOLVED] File uploads aren't working correctly. Image not found after upload.

3
TremorAcePV (talkcontribs)

My Wiki is private, otherwise I'd link it. I'm using ImageMagick. It's version 6.7.7 installed via "sudo apt-get install mediawiki" yesterday.

Product Version
MediaWiki 1.23.1
PHP 5.5.9-1ubuntu4.3 (apache2handler)
MySQL 5.5.38-0ubuntu0.14.04.1

Error I see in thumbnail for newly uploaded file:

Error creating thumbnail: /bin/bash: /w/extensions/ImageMagick: No such file or directory
Error code: 127

When I click the file, it says "Not found". The directory has 775 permissions and is owned by www-data. I'm not sure what the issue is. :/ Google and other people's solutions haven't helped.

Florianschmidtwelzow (talkcontribs)

Are you sure, that ImageMagick is installed in extensions folder? Please notice, that the install of MediaWiki using apt isn't supported at all.

TremorAcePV (talkcontribs)

Thank you for the reply.

I installed MediaWiki by downloading the .tar.gz from the download page here. It's ImageMagick that is getting to me as it's a bit more complicated to compile and such.

I uninstalled ImageMagick via "sudo apt-get remove ImageMagick" and manually compiled it within /var/www/html/w/extensions/ImageMagick.

I am still having the "Not found" issue as well as thumbnails being broken. That'd be ImageMagick 6.8.9, the latest version.

I am guessing that it is user error because when I remove $wgUploadDirectory & $wgUploadPath from LocalSettings.php, uploading files works almost entirely fine.

If I change $wgUploadDirectory & $wgUploadPath, this is what causes it to break. I suppose my issue is somewhat resolved, but I'd like to figure out why it was failing.

I was trying $wgUploadDirectory = "$IP/images/public";. Path was the same. Then I tried "$wgScriptPath/images/public", but both produced this error on top of "Error deleting file" or "Error creating directory". Permissions never changed though.

Anyway, I'm going to make a new ticket because now the issue is different. "Error deleting file: Could not create directory "mwstore://local-backend/local-deleted/t/l/p"

Reply to "[RESOLVED] File uploads aren't working correctly. Image not found after upload."