Thread:Project:Support desk/Errors when uploading svg files

RESOLVED BY ADDING $wgMaxShellMemory = 202400; http://www.mediawiki.org/wiki/Manual_talk:Image_administration#Error_creating_thumbnail:_SVG_Error_creating_thumbnail

MW 1.9.3 (fresh test install) Apache version	2.2.23 PHP version	5.3.21 MySQL version	5.1.66-cll

When I uploaded a svg file I got:


 * Warning: wfMkdirParents: failed to mkdir "...public_html/wiki19/images/temp/e/ed"
 * mode 511 in ...public_html/wiki19/includes/GlobalFunctions.php on line 2536
 * Internal error
 * Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.

When added $wgShowExceptionDetails = true; and repeated I got:


 * Error creating thumbnail: ERROR: meta.c (179): wmf_header_read: this isn't a wmf file
 * convert: Delegate failed `"wmf2svg" -o "%o" "%i"'.
 * convert: unable to open image `/tmp/magick-XX0voRfA': No such file or directory.
 * convert: unable to load module `/usr/lib64/ImageMagick-6.2.8/modules-Q16/coders/svg.la': libdbus-1.so.3: failed :to map segment from shared object: Cannot allocate memory.
 * convert: unable to open file `/tmp/magick-XX0voRfA': No such file or directory.
 * convert: missing an image filename `PNG://tmp/transform_5d52111-1.png'.

In Local settings I have:


 * $wgFileExtensions[] = 'svg';
 * $wgShowExceptionDetails = true;
 * $wgSVGConverter = 'ImageMagick';

Mime type on the server for svg is
 * image/svg+xml	svg svgz

When I added $wgSVGConverterPath = "/usr/bin/convert";

And tried again, I got this error


 * Thumbnail: ...public_html/wiki19/bin/ulimit4.sh: line 4: /usr/bin/convert/convert: Not a directory

468 × 60 (2 KB)

When changed path to $wgSVGConverterPath = "/usr/bin/";

Got again:


 * Error creating thumbnail: ERROR: meta.c (179): wmf_header_read: this isn't a wmf file
 * convert: Delegate failed `"wmf2svg" -o "%o" "%i"'.
 * convert: unable to open image `/tmp/magick-XX7yt7Hj': No such file or directory.
 * convert: unable to load module `/usr/lib64/ImageMagick-6.2.8/modules-Q16/coders/svg.la': libdbus-1.so.3: failed to map segment from shared object: Cannot allocate memory.
 * convert: unable to open file `/tmp/magick-XX7yt7Hj': No such file or directory.
 * convert: missing an image filename `PNG://tmp/transform_4d7b2a0-1.png'