Topic on Project:Support desk

[RESOLVED] Thumbnails are not being created

12
Peter Westerlund (talkcontribs)

Have installed the latest stable version of Mediawiki on my hosted web server and enabled file upload. And it works to upload an image. But the thumbnail is not created.

Have searched through the web for answers and looked at the wiki manual. Tried setting the right permissions on the folders. Nothing works..

What could be wrong?

88.130.100.16 (talkcontribs)

Hi Peter,

what is the exact error message you get? Have a look at the PHP error log or maybe even at the thumbnails themselves; the error might also show up at the place, where the image should be. And: How does "thumbnail not created" look like for you?

I guess that you have not set up $wgUseImageMagick or that the path to ImageMagick in LocalSettings.php is wrong.

Peter Westerlund (talkcontribs)

There is no error message aside from that the thumbnail image is broken and no thumbnail image file existing in the image folder or subfolders.


The settings looks like this:


$wgEnableUploads = true;

$wgUseImageMagick = true;

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

$wgGenerateThumbnailOnParse = false;


I have also tried to turn off ImageMagick and set a $wgTmpDirectory. But none of that works.

Peter Westerlund (talkcontribs)

Anyone? Help

Ciencia Al Poder (talkcontribs)
Peter Westerlund (talkcontribs)

God damn, all I had to do was putting $wgGenerateThumbnailOnParse to true... :)

74.69.54.78 (talkcontribs)

Don't feel bad. 7 years later, and this post just solved EVERYTHING for me.

JulianMalcolm08 (talkcontribs)

It never did help me!

JulianMalcolm08 (talkcontribs)

I have looked all over for the answer to my problem and I have tried everything. Sometimes the thumbnail would load for an image after trying a solution but still there are images that will not create a thumbnail. How do I fix this!

Ciencia Al Poder (talkcontribs)
Babylon survivor (talkcontribs)

I have been trying to get Thumbnails working on the docker version of MediaWiki, with no success. I am ready at this point to dump MediaWiki as bloatware that cannot / will not evolve. I have tried the bitnami and "official" WikiMedia docker versions. I have been running MediaWiki for over 5 years on AWS machines, RPIs, and VMware. The thumbnails were always a challenge to get working. Not sure why this is not setup in the docker images ready to use. Nearly every user wants / needs this. None of the docker images have GhostScript installed...really pathetic... and the bitnami image did not even have ImageMagick installed. Why is this so hard for the community to get right, after years of users being challenged?!? This just wastes everyone's time, and drives people away from MediaWiki....

DLl314 (talkcontribs)