Mediawiki 1.19 Unable to save thumbnail to destination

In English: If you have error Error creating thumbnail: Unable to save thumbnail to destination you can solve it with

  1. Put code in your LocalSettings.php:
    $wgTmpDirectory = "$IP/images/temp";
    (apache must be able to write in this folder)
  2. OR Put another code in your LocalSettings.php:
    putenv('TMPDIR=/path/to/my/temp/folder');
    (apache must be able to write in this folder)
  3. Or, if you are running a really strict server with safemode and so on - edit file includes/GlobalFunctions.php and replace piece
    if( function_exists( 'sys_get_temp_dir' ) ) {
                return sys_get_temp_dir();
         }

with

return ini_get('upload_tmp_dir');

One of those solutions will work for sure :) I had to make 1) and 3) to return my thumbnails…

По русски: При ошибке Ошибка создания миниатюры: Не удаётся сохранить эскиз по месту назначения Мы можем сделать следующее:

  1. Добавьте код в LocalSettings.php:
    $wgTmpDirectory = "$IP/images/temp";
    (у сервера должны быть права записи в указанную папку) 2)Или добавьте другой код в LocalSettings.php:
    putenv('TMPDIR=/path/to/my/temp/folder');
    (у сервера должны быть права записи в указанную папку)
  2. Или, если мы на суровом сервере в сейф моде - берём файл includes/GlobalFunctions.php и заменяем
    if( function_exists( 'sys_get_temp_dir' ) ) {
                return sys_get_temp_dir();
         }

на

return ini_get('upload_tmp_dir');

Что-нибудь из этого поможет наверняка. Мне помогла совокупность 1) и 3)