Topic on Project:Support desk

[RESOLVED] MW 1.21 Error creating thumbnail: Unable to save thumbnail to destination

3
131.173.209.126 (talkcontribs)

Hi everyone.

I currently have a lot of trouble with the thumbnails in a new MediaWiki that I wanted to set up. I tried a lot, but nothing worked. I hope you can help me!


My Problems:

  1. Everytime I upload an Image, the thumbnail is not created and I get the error: "Error creating thumbnail: Unable to save thumbnail to destination". The Image itself is uploaded and can be viewed.
  2. When I delete an image and upload the same image again (after clicking on "Ignore warning and save file"), MediaWiki completely crashes and I get the php-error: "Fatal error: Call to a member function bind() on a non-object in [...]/htdocs/wiki/includes/upload/UploadBase.php on line 259"


My Setup:

  • MediaWiki 1.21.1 (German version)
  • PHP 5.3.3 (cgi-fcgi)
  • MySQL 5.0.95

All running on Linux with UNIX kernel-version 2.6.18-308.13.1.el5xen


What I already tried/tested:

  • I activated all php-functions that can execute shell-scripts.
  • I made sure ImageMagick (version 6.2.8) is working and accessible via php.
  • I tested deactivating ImageMagick and tried working with GD2.
  • I set chmod 777 to the images-folder and even once to the complete wiki.
  • I checked if I have access to /tmp.
  • I then came across old reports of the same problem with MW 1.19 like in: http://www.mediawiki.org/wiki/Thread:Project:Support_desk/Error_creating_thumbnail:_Unable_to_save_thumbnail_to_destination/reply I tried nearly every suggested solution to this problem. I even downloaded MW 1.19 (which did not work either) and tried the suggested solutions with this version.

BUT: Nothing worked. Nothing at all. I have no idea what else could be the problem. PLEASE have any suggestions for me! Thanks in advance.

MarkAHershberger (talkcontribs)

Good job on doing all that the homework before asking for help!

Have you tried enabling the debug log file to see what it produces? How about adding

 error_reporting( -1 );
 ini_set( 'display_errors', 1 );

to your LocalSettings.php file to see if any errors pop up?

131.173.198.136 (talkcontribs)

Thank you so much! With this I was able to find the problem! It was simply that "escapeshellarg()" was also disabled on the server. I use a very restricted webserver at work... as I said, I already managed to get the PHP-functions enabled that are necessary for executing shell-commands. But I did not consider that the escape-function might also be disabled.

Reply to "[RESOLVED] MW 1.21 Error creating thumbnail: Unable to save thumbnail to destination"