Brion Vibber wrote:
> I have 5 MediaWiki installations which has stopped
displaying
> thumbnails in the image gallery index.php?title=Speciel:Newimages. It
> only affects the thumbnails, the full scale images are working fine.
> Instead of the thumbnails, it displays the message "Incomplete GD
> library configuration: missing function imagecreatefrompng".
This may indicate a damaged, missing, or badly
configured build of PHP
and/or PHP's GD extension (missing the PNG libraries during build).
> At first I thought the problem started because I
imported image
> metadata in a XML file and inserted images to the image directories,
> from another MediaWiki installation, but this should only affect the
> Wiki importing the image metadata, not all of them I suppose. They do
> use the same database though.
The way you imported the data shouldn't matter, but
the way you imported
the *configuration* might. It's possible that your current server
doesn't have PHP's GD extension set up at all, but that the one you
copied your wiki from did.
Check your LocalSettings.php; try setting
$wgUseImageResize to 'false'
instead of 'true'. This will disable the use of server-size resizing, so
large images will be scaled down by the browser.
Alternatively, check if the PHP GD extension is
enabled, and
install/enable it if if necessary. (It may be present as a .dll file but
not enabled in php.ini.)
This was weird. By installing PHP on another server and picking the php_gd2.dll from the
new installation to this one, restarting the webserver, booting the Windows server,
emptying browser cache, it still didn't solve the problem. Without further debugging
it is working fine this morning. Well, problem solved. Thanks.
> If it has any significans I am using a Windows
2003 server with IIS
> 6.0