Topic on Project:Support desk

Unable to generate Thumbnails : escapeshellarg() has been disabled for security reasons

7
Ironhide1975 (talkcontribs)

Okay so everything was working just fine and when I tried to upload images I received this error.

: escapeshellarg() has been disabled for security reasons

I did some research and set $wgUseImageMagick = false;

This allows the file to be uploaded but when I go to view the image on the page I get the following error.

Error creating thumbnail: File missing

What gives?

Jonathan3 (talkcontribs)
Bawolff (talkcontribs)

The mediawiki debug log might have additional info on wht gd didnt create the thumbnail. See How to debug.


Strongly reccomend getting a different host that doesnt dusable escapeshellarg.


If all else fails, try also setting $wgUseImageResize = false;

Ironhide1975 (talkcontribs)

@Jonathan3

Thank you for the info however here is the problems I'm running into. (And I've also read everything I could find on the internet concerning this.)

1) There is no disabled functions in my php file.

2) I sent a request to my provider to re-enable escapeshellarg

3) I am not a PHP programmer by heart (more of a Classic ASP guy) so I don't know what option 3 does.

@Bawolff

I did reach out to a new hosting provider to see if I can migrate the site over as it's getting pretty big in itself.

Jonathan3 (talkcontribs)

The whole thumbnail thing is a mystery. I had a problem with PDF thumbnails which nobody could get to the bottom of. When I moved server it just started to work.

Bawolff (talkcontribs)

> There is no disabled functions in my php file.

You're probably looking at the wrong php.ini file. (Create a page containing just <?php phpinfo(); name it something ending in .php, upload to your webserver, and view it in the browser. It will tell you where the php.ini files are located).

Ironhide1975 (talkcontribs)

Looks like that didn't work but I'm going to be migrating to a new provider anyway. Thank you for your help.

Reply to "Unable to generate Thumbnails : escapeshellarg() has been disabled for security reasons"