My old PHP installation didnt have GD library enabled. The settings page told me this. Since I want thumbnails and preview images I read the docs and compiled myself a new PHP library. The message has now gone away to be replaced by a status message saying that GD is working.

HOWEVER whenever I display the settings page I get this in the error log

[Wed Nov 9 21:12:58 2005] [error] [client 62.255.64.6] File does not exist: /home/owal/html/drupal/system/test/tfgw8oNmJAxpMhl6WTxN.png

That directory is world writable.

I am also *always* getting messages on screen in red saying

Unable to create thumbnail image
Unable to create preview image

Sometimes several times for a single image.

As far as I can see I have the permissions correct - so any ideas how I can test the GD is working from PHP? Does anyone have a small script I could use to test it?

Comments

patechinois@drupalfrancais.zapto.org’s picture

The JPGraph PHP package has a script you can use. But it is hidden in the documentation. You have to download the jpgraph package to get the documentation.

Google for it or go http://www.aditus.nu/jpgraph/

alexmc’s picture

Thanks, I found two tests inside it which confirmed that GD is working. I guess I need to look some more.

cosmonaut’s picture

Thanks, for share the two tests. This is the way for a great forum contribution.