Mediawiki Error: “Error creating thumbnail: Unable to save thumbnail to destination”

I have an older Mediawiki installation which, after upgrading to version 1.23.0, I began to see errors like:

Error creating thumbnail: Unable to save thumbnail to destination

The problem turned out to be the temporary folder setting in LocalSettings.php. It was pointing to ‘tmp’ under ‘images’, which didn’t exist. Instead, there was a folder named ‘temp’. The solution was to change:

$wgTmpDirectory     = "{$wgUploadDirectory}/tmp";

into:

$wgTmpDirectory     = "{$wgUploadDirectory}/temp";

About Jeff Fitzsimons

Jeff Fitzsimons is a software engineer in the California Bay Area. Technical specialties include C++, Win32, and multithreading. Personal interests include rock climbing, cycling, motorcycles, and photography.
This entry was posted in Technology. Bookmark the permalink.

One Response to Mediawiki Error: “Error creating thumbnail: Unable to save thumbnail to destination”

  1. John Crowther says:

    Excellent! This was the exact fix for our installation of Mediawiki v1.23.0. Cheers.

Leave a Reply

Your email address will not be published. Required fields are marked *