Mediawiki errors
From Jonsdocswiki
Contents |
Errors when using images
Error creating thumbnail: /path/to/wiki/bin/ulimit4.sh: line 4: /usr/bin/convert: No such file or directory
Symptom
When an image is uploaded, no thumbnail can be generated and instead the error above is shown in the area where the thumbnail should be.
Fix
ImageMagick is not a requirement of Mediawiki - either ImageMagick or GD can be used to create thumbnails for images although ImageMagick is recommended because it provides better results.
Using ImageMagick
Essentially, it comes down to config files. If, for example, your LocalSettings.php says:
| Section of LocalSettings.php |
|
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert"; |
Then ImageMagick must be installed and the convert command must be located at /usr/bin/convert. If convert isn't at that location, simply change it in LocalSettings.php.
Using GD
If you don't have ImageMagick installed, or don't want to use it, then ensure your config file says:
| Section of LocalSettings.php |
|
#$wgUseImageMagick = true;
#$wgImageMagickConvertCommand = "/usr/bin/convert"; |
(the ImageMagick variables here are commented out by the # causing PHP to ignore their values when parsing the script).
