image_exact: File does not exist.

mudanoman - July 21, 2006 - 00:28
Project:Image Exact Sizes
Version:4.7.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs work
Description

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

#1

mariachoo - July 26, 2006 - 02:39

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

#2

tng@neuralgourm... - July 29, 2006 - 04:12

I can confirm this too on a fresh 4.7.2 install.

#3

kopexy - July 31, 2006 - 07:15

Loks like a typo

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

#4

thumb - August 8, 2006 - 06:41

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. ).

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

#5

ezichko - August 10, 2006 - 17:39

same problem here too. :(

#6

gsh2000 - August 14, 2006 - 05:22

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

#7

dmp0x7c5 - August 16, 2006 - 23:14
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

ptilu8 - September 1, 2006 - 18:13

still the same error even with the patch...

#9

drumdance - September 2, 2006 - 16:28

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

#10

discursives - September 11, 2006 - 16:53

Same here. Please advise.

#11

JohnNoc-old - September 12, 2006 - 12:29

same problem here! huhuhu :-(

#12

jango - September 13, 2006 - 09:56

Same problem!

#13

jango - September 13, 2006 - 10:57

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

#14

jerseycheese - September 29, 2006 - 16:43

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

gsh2000 - October 4, 2006 - 21:23

same error here. version 4.7.3

image_exact: File does not exist

#16

toemaz - November 11, 2006 - 14:18
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

michelejohnston - November 14, 2006 - 19:12

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

creatorsdream - November 16, 2006 - 10:35
Status:reviewed & tested by the community» needs work

Doesn't work on drupal 4.7.4 at all.

#19

kevinwalsh - November 29, 2006 - 18:25

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

#20

bensheldon - December 11, 2006 - 17:46

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

sarvi - December 12, 2006 - 08:25

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.

 
 

Drupal is a registered trademark of Dries Buytaert.