Download & Extend

image_exact: File does not exist.

Project:Image Exact Sizes
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs work

Issue Summary

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

Comments

#1

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

#2

I can confirm this too on a fresh 4.7.2 install.

#3

Loks like a typo

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

#4

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.

#5

same problem here too. :(

#6

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

#7

Status:active» needs review

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.

AttachmentSize
image_exact-4.7.0.patch.txt 497 bytes

#8

still the same error even with the patch...

#9

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

#10

Same here. Please advise.

#11

same problem here! huhuhu :-(

#12

Same problem!

#13

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

#14

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.

#15

same error here. version 4.7.3

image_exact: File does not exist

#16

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.

#17

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.

#18

Status:reviewed & tested by the community» needs work

Doesn't work on drupal 4.7.4 at all.

#19

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

#20

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.

#21

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.

nobody click here