Topic on Project:Support desk

Error creating thumbnail: Unable to save thumbnail to destination

27
Stillhouse (talkcontribs)
AhmadF.Cheema (talkcontribs)

You will need to provide your software information and describe which resolutions have you tried thus far (like for example, support topics that you've already gone through).

Stillhouse (talkcontribs)

My software:

MediaWiki 1.27.1
PHP 7.0.22 (cgi-fcgi)
MySQL 5.6.23-cll-lve
ICU 57.1

It seems that everyone who has had this issue attempts changes in LocalSettings.php in regards to the tmp directory.

$wgTmpDirectory = "/home/thecurew/tmp_45vras";

I have also ensured write permissions are set on the directory and that they are recursed into subdirectories.

Some solutions have suggested changing values here - these are my current settings which had worked fine before today, with no changes made:

$wgEnableUploads = true;

$wgUseImageMagick = true;

$wgImageMagickConvertCommand = "/usr/bin/convert";

Malyacko (talkcontribs)
Stillhouse (talkcontribs)

Upgraded to 1.29.1, same issue

AhmadF.Cheema (talkcontribs)

Have you already tried setting a debug log (Manual:How to debug)? Did you get any relevant information?

Stillhouse (talkcontribs)

I set a debug log and no errors so far. I am upgrading to the latest version of MediaWiki now.

Stillhouse (talkcontribs)

No change after upgrade.

2003:72:6D17:800:A413:6747:C981:9449 (talkcontribs)

You need the debug log of a page call, in which MediaWiki is trying to create a formerly missing thumbnail. This debug log will contain the exact shell command, which MediaWiki is trying to use and also more information on the error.

Stillhouse (talkcontribs)

thanks for the help - can you advise on perhaps what i'm doing wrong? i set a debug.txt file and added this line to my LocalSettings.php:

$wgDebugLogFile = “/home/thecurew/americanmusicclub.com/debug.txt”;

AhmadF.Cheema (talkcontribs)

In this debug.txt file do you have any text getting written down?

Stillhouse (talkcontribs)

Nothing at all

2003:72:6D17:800:2524:6C7:ADEE:B6CF (talkcontribs)

You can also get a debug log by setting

$wgDebugToolbar = true;

in LocalSettings.php. Note that the debug log as displayd there contains sensitive information, which a normal visitor should not be getting! Also note that we need the log not from any request, but specially from a request, in which MediaWiki is trying to create a formerly missing thumbnail.

Stillhouse (talkcontribs)

I have set $wgDebugToolbar = true in LocalSettings.php - where do I find this log?

Stillhouse (talkcontribs)

The toolbar is not displaying in the browser window after this is set.

AhmadF.Cheema (talkcontribs)

In case either of $wgUseFileCache and $wgUseSquid are set to true, set them to false.

Stillhouse (talkcontribs)

Neither $wgUseFileCache or $wgUseSquid are present in the LocalSettings file.

AhmadF.Cheema (talkcontribs)

Don't have any more suggestions regarding the DebugToolbar, coming back to creating a debug.txt log file method, can you make sure that the debug.txt file has the appropriate read and write permissions?

Additionally, you said above that the Wiki has been updated to 1.29.1, but your Special:Version shows 1.27.1, did you perform the upgrade to another Wiki?

Stillhouse (talkcontribs)

This doesn't make any sense. I upgraded via my hosting provider and just verified, it is showing 1.29.1 there - however, I see the Special:Version. I went to americanmusicclub.com/mw-config and it shows 1.27.1 and no other option to perform an upgrade.

Ciencia Al Poder (talkcontribs)

Maybe your hosting provider is installing your wiki on a different path. Or their upgrade procedure doesn't work at all... The thing is, your wiki is not on 1.29

About the debug log file, be sure the webserver has permissions on this folder to write on it. The easiest way is to create a new folder and set permissions to 777, and point the debug log to a file on that folder.

For the error generating thumbnail, you can use this URL to test it directly: test. If you set $wgShowExceptionDetails = true; it should give all the details of the errors like the path it's trying to write to but fails.

2602:30A:2C48:BFA0:6059:8BA0:E011:71AB (talkcontribs)

Re: hosting provider... I opened a ticket with them to look into it and they tell me I do not have any mediawiki installs in my account... so they are pretty helpful. I sent them a screenshot with the 2 installs I do in fact have, direct from my account Softaculous control panel, so we'll see

Re: debug file - I did as you suggested but still nothing written to the file.

Re: $wgShowExceptionDetails - I set it to true in the LocalSettings.php, but the test URL you sent over is still only showing:

Error generating thumbnail

Error creating thumbnail: Unable to save thumbnail to destination

Stillhouse (talkcontribs)

hello everyone.. re: $wgShowExceptionDetails = true - this takes down the site. americanmusicclub.com is currently unable to handle this request.

HTTP ERROR 500

however i finally got the debug toolbar to work. i have the log, but it is long and keeps wanting to paste all on together rather than line by line. not sure how to post this.

AhmadF.Cheema (talkcontribs)

Did you include a semicolon ; after $wgShowExceptionDetails = true. The error you received, in these situations is usually due to syntax errors.

Regarding the debug log, you can paste it in some temporary text hosting website (like pastebin) online and link to it. Remember to remove any private/security data from the log.

Stillhouse (talkcontribs)
AhmadF.Cheema (talkcontribs)

Is this the debug log after you opened a page on which a thumbnail had to be generated?

Stillhouse (talkcontribs)

yes - where should i take the log from?

2003:72:6D18:9300:B080:A7B0:4A52:A26E (talkcontribs)

Hi there,

in the debug log, which you posted, from calling /index.php?title=Klamath, MediaWiki is not trying to create a thumbnail.

You could e.g. take the log from a page in the File: namespace. If the image on that page is a bit bigger, MediaWiki should try creating smaller thumbnails when you are calling that page.