This error message appears after uploading an avatar. Running 4.7.2. Thanks, Ivan

CommentFileSizeAuthor
#7 image_exact-4.7.0.patch.txt497 bytesdmp0x7c5

Comments

mariachoo’s picture

got the same problem with 4.7.2 - even after applying the patch.

tng@neuralgourmet.com’s picture

I can confirm this too on a fresh 4.7.2 install.

kopexy’s picture

Loks like a typo

line 128 first parameter should be $source an not $destination

thumb’s picture

I can confirm this with my multisite 4.7.2 install. I also notice that uploaded avatars are being referenced through system root rather than web root paths (i.e. Only local images are allowed.).

I'm a bit confused regarding the reference to line 128. There are only 115 lines in image_exact.module.

ezichko’s picture

same problem here too. :(

gsh2000’s picture

here too- 4.7.3 --> image_exact: File does not exist.

dmp0x7c5’s picture

Status: Active » Needs review
StatusFileSize
new497 bytes

It's problem with $edit array in user_hook function for that module. $edit['picture'] doesn't exist. Now correnct one is $edit['_account']->picture.

patch attached.

ptilu8’s picture

still the same error even with the patch...

drumdance’s picture

Same error here. Applied the patch and changed line 128. :(

discursives’s picture

Same here. Please advise.

JohnNoc-old’s picture

same problem here! huhuhu :-(

jango’s picture

Same problem!

jango’s picture

Oh no i'm sorry, the patch is working great.

jerseycheese’s picture

Applied patch and still getting this error after uploading an avatar.
image_exact does not seem to crop avatar or have any effect on the uploaded avatar.

gsh2000’s picture

same error here. version 4.7.3

image_exact: File does not exist

toemaz’s picture

Status: Needs review » Reviewed & tested by the community

I applied the patch provided at #47 and it worked out well.
I tested a few times.

Patch seems ready to be comitted.

michelejohnston’s picture

We applied the patch. It only works for admins updating their own avatar. Admins cannot update other users's avatars and users cannot update their own.

creatorsdream’s picture

Status: Reviewed & tested by the community » Needs work

Doesn't work on drupal 4.7.4 at all.

kevinwalsh’s picture

Same error, 4.7.4, whether it's the admin editing another's user account or the user.

bensheldon’s picture

function image_exact_user($op, &$edit, &$user, $category = NULL) {
  if ($op == 'update' && variable_get('image_exact_avatars', 0) && $edit['picture']) {
    list($final_w, $final_h) = explode('x', variable_get('user_picture_dimensions', '190x190'));
    $w = round($final_w / 2);
    $h = round($final_h / 2);
    image_exact_resize( $edit['picture'], $edit['picture'], $w, $h);
  }
}

This is the code I'm using that seems to work in all cases (registration, update profile, administrator modification of existing account).

* The modifications are the beginning if statement (op == 'update' and checking to see if the user has an assigned picture).
* And I went back to the unpatched code without using the $edit['_account'] object.

sarvi’s picture

I notice that this problem also happens when a new user registers. Does your patch above address that as well. I ask since it seems to be checking for 'update' specifically. I am wondering if it will fix the case of a new subscriber aswell.