1. Home
  2. Programming Tools
  3. [MediaWiki] Error creating thumbnail: Unable to save thumbnail to destination [Solved]

[MediaWiki] Error creating thumbnail: Unable to save thumbnail to destination [Solved]

I’m quite new using MediaWiki version 1.24.4. The MediaWiki allows me to upload files such as PDF, docx, ppt etc…and it works fine as well. But I get this error ‘Error creating thumbnail: Unable to save thumbnail to destination‘ while uploading image files such as jpeg or png. I’m able to confirm that the file has been uploaded successfully by clicking ‘list of uploaded files‘ link in ‘Upload File‘ page – where I see all the files that are uploaded including the images file. The above error was displayed under ‘Thumbnail’ column. What could be the problem?

Solution:

image upload error

  • Go to wiki folder and lookout for ‘LocalSettings.php‘ file.
  • Set ‘$wgTmpDirectory‘ pointing to the temporary directory as shown below
$wgTmpDirectory = "/var/www/html/wiki/temp";

That’s it. Refresh the ‘File list‘ page and you should see all those uploaded images with thumbnails.

Updated on September 1, 2017

Was this article helpful?

Related Articles

Leave a Comment