[dokuwiki] Re: Bug in fetch.php (was Imagemagick)

  • From: Chris Smith <chris@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 26 Jul 2006 13:39:36 +0100

Stephan Herrmann wrote:

imagecreatetruecolor doesn't exist in GDLib 1.x.

But I didn't know that.
The problem with some php versions is that the function maybe defined even though it doesn't exist in the gd library. From the function description at www.php.net, PHP 4.0.6 - 4.1.x always define the function, PHP will issue a fatal error if its not present in the GD Library. PHP4.2.x its always defined, but PHP only issues a warning if its missing from GD. Other versions [presumably 4.3+] only define the function if it is present in the GD Library. They recommend GDLib 2.0.28 or later. DokuWiki recommends PHP 4.3.10 or later.

You can see the versions of both by uploading a page to you webspace containing the following:

<?php phpinfo(); ?>

Call the page from your browser and examine the results. You'll need to scroll down for GD Library details.

Since you have that function, it sounds like you don't have a 1.x version, in which case you should have the value set to 2.

But I had to set 1.x manually, because there were no thumbs with "autodetect" at all.

Sounds like autodetect needs improving. Can you respond with your OS/Webserver/PHP & GD Lib versions?
All of that will appear amongst the phpinfo.


Okay. So it's not a bug. Sorry for the noise. It's working and I am happy and quiet now.
:)

Cheers,

Chris
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: