My PHP installation is missing some function. What can I do?
jeuelc - January 20, 2008 - 09:49
| Project: | Image watermark |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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?

#1
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
#2
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
#3
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.
#4
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