G'day,
I recently moved my MediaWiki from one server to another. Everything seems to work well except thumbnail generation: I receive "Error creating thumbnail: Error code: 2"
I have reviewed and tried the various documented online solutions without success. My LocalSettings.php is
$wgEnableUploads = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert";
I can confirm that ImageMagick is installed (version 6.7.7-10) and the convert command path works when I try it from the Mediawiki directory prompt. . MediaWiki is looking into the right place for images (full images upload and display fine). I temporarily changed permissions to 777 on /images and on /images/temp just to see if that solved a problem. It didn't. I tried specifying
$wgMaxShellMemory = 512 000; $wgMaxShellFileSize = unlimited;
But that didn't solve the problem. I tried specifying the /images/temp directory with $wgTmpDirectory = "$IP/images/temp"; but that didn't solve the problem either. For kicks I tried using /etc/alternatives/convert but that didn't work either. I logged out of the wiki after each change and 'hard' refreshed my browser just to make sure that I was looking at the new settings effects. My MediaWiki is in /var/www/html/wikiname. It is version 1.23.2.
Convinced that imagemagick isn't being called or exiting properly I followed the links and got:
me@star:/usr/bin$ ls -l /usr/bin/convert lrwxrwxrwx 1 root root 25 Nov 3 17:39 /usr/bin/convert -> /etc/alternatives/convert me@star:/usr/bin$ ls -l /etc/alternatives/convert lrwxrwxrwx 1 root root 20 Nov 3 17:39 /etc/alternatives/convert -> /usr/bin/convert.im6 me@star:/usr/bin$ ls -l /usr/bin/convert.im6 -rwxr-xr-x 1 root root 6320 Mar 6 2014 /usr/bin/convert.im6 me@star:/usr/bin$ dpkg -S /usr/bin/convert.im6 imagemagick: /usr/bin/convert.im6
I tried changing the LocalSettings command path to /usr/bin/convert/im6 but it didn't help. I'm out of troubleshooting ideas. Any suggestions?