Hi,

I'm using CCK 6.x-2.2, the scenario is the following: the user creates a new node and uploads an image to it. The system shows it using ImageCache for resizing proposes so it generates a new one. Later, the user deletes that image and uploads another one with the same name... ImageCache's image is not refreshed so the system shows the old one !

Thanks in advance,
Leandro.

Comments

quicksketch’s picture

It's actually ImageCache that should be responsible for deleting these images since it created them. It should implement hook_file_delete() and delete those images when the original is deleted.

Actually, I just took a look at ImageCache, and it *is* doing this:

/**
 * Implementation of filefield.module's hook_file_delete().
 *
 * Remove derivative images after the originals are deleted by filefield.
 */
function imagecache_file_delete($file) {
  imagecache_image_flush($file->filepath);
}

So it should be doing this already. Are you using the latest version of ImageCache?

Or... are you referring to the thumbnail next to the uploaded image when editing the node? That's not actually ImageCache at all, ImageField is doing that on it's own.

macramole’s picture

Status: Active » Closed (fixed)

Mm. That's strange, I was sure that was the problem i was having. Sorry then.

Thanks for the reply,
Leandro.

OnlineWD™’s picture

I think this is imagecache issue http://drupal.org/node/362356#comment-1743850.

pmkanse’s picture

Assigned: Unassigned » pmkanse
Category: bug » task
Status: Closed (fixed) » Active

Hi
I was getting an error while removing image from node.
Error was :
An HTTP error 500 occured. filefield/ahah/ed_classified/field_addlogo/0

So i checked my server error log.It was showing some error which was related to the Content taxonomy module.
So i made one of my taxonomy term default, and then "miracleeee".... i am able to remove the image from the node.

quicksketch’s picture

Assigned: pmkanse » Unassigned
Category: task » bug
Status: Active » Closed (fixed)

pmkanse, that report doesn't seem to have to do with anything in this issue. I'd suggest adding your comment to #485708: Unable to remove a field (HTML error 500), which seems much more on topic.