Jump to content

Topic on Project:Support desk/Flow

Error creating thumbnail: Unable to run external programs, proc_open() is disabled. Error code: 1

3
217.149.143.1 (talkcontribs)

MediaWiki 1.23.7 (and 1.23.5) PHP 5.3.29 (cgi-fcgi) MySQL 5.5.40-cll

When ever i am uploading a new image it tells me it could not create a thumbnail. The error message: Error creating thumbnail: Unable to run external programs, proc_open() is disabled. Error code: 1 . This was happening since 1.23.5, upgrading to .7 did not work.

I have tried to enable proc_open but it was denied by my web hoster since enabling it was a security risk. I have googled the problem and found a few solutions but none of them worked. I tried changing the FileOpBatch.php but it did not work.

Does anyone have an idea?

88.130.85.2 (talkcontribs)

MediaWiki in fact needs the proc_open function while it is running some external programs. Basically this code could also be changed to use another function, e.g. exec(), but if your host believes he cannot create a secure setup with proc_open() enabled, then he will most likely tell you the same for any function, which runs external programs.

For the thumbnail creation you might get it solved by setting

$wgUseImageMagick = false;

in LocalSettings.php. MediaWiki will then no longer use ImageMagick to create thumbnails. Anyway, even if that works, it is not a solution, but only a workaround.

217.149.143.1 (talkcontribs)

Thanks for the info, i have tried the $wgUseImageMagick = false; method and that works for now. In the mean time ill sort it out with my web host to get that Proc_open function enabled.

Thanks again!!

Reply to "Error creating thumbnail: Unable to run external programs, proc_open() is disabled. Error code: 1"