Topic on Project:Support desk

Vssupport (talkcontribs)

Hi,

We are having an issue with uploading images on http://cx500forum.com/mediawiki/index.php?title=Special:Upload

The image uploads but the thumbnail gives an error every time: Error creating thumbnail: Unable to save thumbnail to destination

We checked the directory's permissions and ownership, even looked into the config file. We found from MediaWiki support boards, the suggestion is to ensure the PHP variables point to a working ./tmp directory.

Even after configuring absolute paths, the thumbnails do NOT appear, but the full images show up.

Is there something that we could be missing that would prevent these thumbnails from being created?

~S

AhmadF.Cheema (talkcontribs)

You will need to set-up a debug log file and then browse to a page where a thumbnail should be generated. The log file should contain the commands MediaWiki runs to generate the required thumbnail and any errors it encounters during the process. See Manual:How to debug#Setting up a debug log file.

Vssupport (talkcontribs)

Hi,

We tried the suggested log setup:

Created:  /var/log/mediawiki/debug-[database_name_omitted].txt and /var/log/mediawiki/debug-[database_name_omitted].log with permissions for mediawiki to write to.

In LocalSettings.php, tried:

//$wgDebugLogFile = "/var/log/mediawiki/debug-[database_name_omitted]log";

//$wgDebugLogFile = "/var/log/mediawiki/debug-{$wgDBname}.log";

//$wgDebugLogFile = "/var/log/mediawiki/debug-{$wgDBname}.txt";

$wgDebugLogFile = "/var/log/mediawiki/debug-[database_name_omitted].txt";

However we are not seeing any errors show up in the logs no matter what we tried.

What we did notice that was when we attempted to upload an image, the image would show a preview in the initial upload page but once you go to the published page that is where the error message shows.

~S

Vssupport (talkcontribs)

Any insight on this?

2003:CC:ABC3:9C00:656C:310F:E12B:2601 (talkcontribs)

Is MediaWiki actually writing to the file /var/log/mediawiki/debug-[database_name_omitted].txt?

If so, you can try this: Empty the file, save it and then in MediaWiki browse to a page, which contains a thumbnail, which up to now does not exist. After that, the log file will contain information on exactly this request...

Vssupport (talkcontribs)

The file is set to write, but it looks like the file is already empty so I do not think it's picking up the errors.

~S

Reply to "Thumbnail Issue"