I have one user who had a profile image before I started using imagecache profiles. I have attempted to update its profile image twice and it has partially worked. This user's original image is the one which shows up in comments and nodes, but in its profile, the image from the FIRST attempt to update the image shows up. Any new attempt to update the image has no effect.

So, for this user, posts show the profile image from BEFORE the multiple attempts to update the image with imagecache profiles. This users PROFILE shows the image from the FIRST attempt to use imagecache profiles.

For a user who did not have an image prior to installing imagecache profiles, the profile image did update once but any future attempt to update the profile image has no effect [the image from the first attempt just shows up].

Thanks.

Comments

pkrekelb’s picture

flushing the imagecache got them to update perfectly... looks like we just need to set imagecache to flush every time the profile image is updated? Any thoughts on how that might be done?

pkrekelb’s picture

Fixed in function imagecache_profiles_user_edit_submit by replacing imagecache_image_flush($form_values['picture']); with this:

$tpath = str_replace("files/","",$form_values['picture']);
imagecache_image_flush($tpath);

The flush was getting the wrong path and was not deleting the right image, thus flushing nothing. This is with imagecache 2.0 beta so this may not be necessary with the earlier release version!

v1nce’s picture

Status: Active » Closed (fixed)

Confirmed this bug is not with imagecache 1.x.