Hi.
Got this error while trying to rotate an image in an acidfree album. It showed up when clicking "Save"
Fatal error: Call to undefined function _image_remove_derivatives() in /usr/share/drupal-5.1/modules/acidfree/class_image.inc on line 75

I'd be happpy to provide more information if needed.

This is on a Kubuntu Dapper box with apache2 and php5.

Comments

vhmauery’s picture

I don't see how this is possible. Acidfree requires Image module to be installed and enabled and the admin/build/modules page enforces the dependency. This function is defined in image.module.

haeger’s picture

Hi, sorry that I haven't responded earlier. I wasn't notified that there was an answer for me and I'm not at drupal.org often enough.

From what I can see I have the image.module installed and enabled. It appears to be 5.x-1.x-dev. Could that be the problem? Should I use some other version of the image-module?
Acidfree is the same version (5.x-1.x-dev) it appears.

dannypfeiffer’s picture

Did you ever find a solution to this? I have the same problem.

s3khm3t’s picture

I am also getting this exact error (with different path of course) when I attempt to rotate an image. The error occurs when I hit "Submit". The Albums and images themselves are working, but I would love to be able to rotate the images. Has anyone found a solution?

jazzmoose’s picture

Likewise with image-5.x-2.x-dev and acidfree-5.x-1.x-dev

jazzmoose’s picture

OK. Apologies in advance as I know v little about php & I'm a drupal noob, here's what I've found anyway:

My version of image.module does not define the _image_remove_derivatives function. I've googled and found an older version (here: https://svn.bryght.com/dev/svn/bryghtbase/DRUPAL-5/trunk/modules/image/i...) which has it defined and called from other defined functions.
That is version 1.209.2.36
Mine is 1.258.2.4
Couldn't find mention of _image_remove_derivatives being deprecated within the CVS comments.
I was getting the above error and also the message "Content has been modified by another user, changes cannot be saved" when ticking the rebuild derivatives box (in edit image node).
Editing class_image.inc within acidfree and commenting out:
// _image_remove_derivatives($node);
Caused both error messages to disappear.

The image attempted to rotate but bizarrely rotated the canvas and stretched the actual image to fit the new canvas orientation.
Am going to try to find an older version of image.

jazzmoose’s picture

OK uninstalled acidfree and image, installed image-5.x-1.5, re-installed acidfree and...
Same problem - image rotation simply rotates the canvas and stretches the image within the new canvas but doesn't rotate the actual image.
Input appreciated

vhmauery’s picture

This sounds like it might be an image caching problem. The image dimensions are set using the image info tools, which read the size from the image file. Try clearing your browser cache after rotating the images to see if that helps.

vhmauery’s picture

Status: Active » Fixed

It is true about the image caching thing -- I just saw it on my browser and had to hit refresh. But the true original bug this issue covered was a call to an undefined function in image module. I have just committed the fix for this and it will be available in the next tarball.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.