Installed the cvs version on a test site, and I get the "Unable to load the GD toolkit" error on my settings page. I have GD installed. Is there a way to check that a file is looking in the right place? (I have a feeling that this is something that will bug me to no end... I hate seeing error messages!)

silverwing

Comments

Bèr Kessels’s picture

Hi,

That is a server issue. Search Drupal/google for phpinfo() and how to see that. You should be able to see whether or not your server has it installed. If not, you should ask your host to install it for you.

And if this solved you problem, would you be so kind to report back that it helped? This will help others whom are looking for the same solution.

[Ber | Drupal Services webschuur.com]

silverwing’s picture

I have a virtual private server that I'm learning a lot about as I go! So I had to add GD to my apache build. Error is gone now.

Thanks, Ber.

irwin’s picture

For Debian:

1) Install php4-gd
2) Update php4
3) Restart apache


# apt-get update
# apt-get install php4-dg php4
# /etc/init.d/apache2 restart

should do it.

To check, use phpinfo and look for the GD section.

-- Irwin
Drupal at work -> http://suikoden.mine.nu
Suikoden-themed Role-playing Game.

matthew-at-barnson.org’s picture

There is one additional configuration step for Debian with Apache2. Edit /etc/php4/apach2/php.ini, and change this line:

;extension=gd.so

to this:
extension=gd.so

I already had several functional Drupal 4.5.2 installs on this server when I upgraded a test to 4.6.2. If the gd extension isn't loaded, Drupal can't use it :)

jakeg’s picture

I'm getting the same problem. I'm using Fedora Core 3, with its own builds of Apache, PHP etc. I use yum for updates. How should I install the GD toolkit? I don't think I have this problem with 4.5.*.

morbus iff’s picture

You wouldn't have this problem in 4.5 because the image API code is new to 4.6. For FC3, you'll need to install the php-gd module, and then restart the webserver. Note, however, that you'll probably run up against http://drupal.org/node/18588 and, if so, Progress!

http://disobey.com/
http://gamegrene.com/

rangermeier’s picture

i'm using cvs version of drupal 4.6 and the image.module
everytime i tried to upload an image i got the error

    * Unable to create thumbnail image
    * Unable to create preview image

the logs showed the following details:
The selected image handling toolkit 'gd2' can not correctly process 'image_gd2_resize'.
images were only saved in their original size.

i solved this problem by renaming the function image_gd_resize to image_gd2_resize in the file includes/image.inc

i wonder if this was caused by an unclean installation (installed over 4.5.2) or if this is actually a bug in image.inc?

jvincher’s picture

You're in good company, more people are wondering about this same question.

http://drupal.org/node/19005#new

zirafi’s picture

Hi,

I configured PHP-5.0.5 on my Solaris 10 box like this:

./configure --prefix=/usr/local/php --with-apxs2=/usr/apache2/bin/apxs
--with-mysql=/usr/sfw --enable-magic-quotes

Assuming that PHP-5.0.5 is bundled with GD image toolkit. Now it seems it doesn't have it. Pl. let me know how to get this resolved? If at all if i need to run configure for PHP, do i need to run whole syntax including GD option or i can just run configure with GD option as an additional component. Otherwise if PHP-5.0.5 comes with GD, then how to enable this. As a 3rd option i downloaded "gd-2.0.33". which one is best option for me.

Thanx