Installed the watermark.module yesterday and got this error under mysite/admin/settings/image_watermark

Function $function does not exist. Watermarking cannot be done. Please make sure that you are running PHP 4.3 or higher, or that you (or your hosting provider) manually compile the GD library into your PHP installation.

MySQL version 4.1.19-standard
PHP Version 5.2.1
GD Support enabled
GD Version bundled (2.0.28 compatible)
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

any idea?

Comments

schnizZzla’s picture

Title: watermark.module issue » My PHP installation is missing some function. What can I do?
Category: bug » support
Priority: Critical » Normal

This is an support request not a critical bug...

Your PHP installation is missing some function. The name of the function is stored in the variable $function. Unfortunatelly the wrong quotes are used in the code so the name isn't displayed correctly.

If you want to know which function it is. Open the file watermark.module in an editor, go to line 210 that should be:

drupal_set_message('Function $function does not exist. Watermarking cannot be done. Please make sure that you are running PHP 4.3 or higher, or that you (or your hosting provider) manually compile the GD library into your PHP installation. You also need PHP to be compiled with --enable-exif.', 'error');   

There replace the first two quotes ' with " so it looks like:

drupal_set_message("Function $function does not exist. Watermarking cannot be done. Please make sure that you are running PHP 4.3 or higher, or that you (or your hosting provider) manually compile the GD library into your PHP installation. You also need PHP to be compiled with --enable-exif.", 'error');   

I opened a bug for that here:
http://drupal.org/node/212488

wavesailor’s picture

I have the same problem.
Can someone confirm with this Module does require the Image module or not as there seems to be conflicting information on the project page.

Thanks,

jj

softtouch’s picture

Save issues here.

I have exif enabled with PHP... and still...

Function exif_imagetype does not exist. Watermarking cannot be done. Please make sure that you are running PHP 4.3 or higher, or that you (or your hosting provider) manually compile the GD library into your PHP installation. You also need PHP to be compiled with --enable-exif.

vrintinus’s picture

I encountered the same problem.

You can find the solution on node/77406: just adapt php.ini as indicated and it works just fine.

Good luck

makokis’s picture

Assigned: Unassigned » makokis

Hi all,
i am newbie in drupal php etc, and i have that error or atention in Drupal 7.12 report,
What i have to do, and how to resolve that?

Many thanks

screenshot report:
[URL=http://www.UploadScreenshot.com/image/771536/3272137][IMG]http://img1.Up...