When I upload avatars to my "selection folder," It shows a bullet selection rather than the actual picture. A screenshot of what i am experiencing can be found attached to this post.

Right after i upload my files, i am also bombarded with ugly code blurbs, the most frequent being:

"
* warning: Division by zero in /home/mvdconli/public_html/includes/image.inc on line 125.
* warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/mvdconli/public_html/includes/image.inc on line 238.
* warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/mvdconli/public_html/includes/image.inc on line 264.
* warning: imagejpeg(): supplied argument is not a valid Image resource in /home/mvdconli/public_html/includes/image.inc on line 339.
* warning: imagedestroy(): supplied argument is not a valid Image resource in /home/mvdconli/public_html/includes/image.inc on line 267. "

Additional Info: I am currently running Drupal 5.x with pHp 5.1

CommentFileSizeAuthor
#4 AVATARTEST.jpg1.79 KBAnonymous (not verified)
Screeshot of what i am experiencing.jpg22.19 KBAnonymous (not verified)

Comments

stella’s picture

Status: Active » Postponed (maintainer needs more info)

I can't reproduce this issue. What version of Drupal 5 are you using? What way are you uploading the files - bulk upload or using the browse option?

Perhaps try using the latest avatar selection dev release to see if that fixes the issue.

Is this the same issue as #260575: Avatars not showing on edit-profile / IE7?

Cheers,
Stella

Anonymous’s picture

I'm running drupal version 5.7 with pHp 5.2

I tried uploading the files in all ways - neither bulk nor individual uploading seems to work - all that is displayed is the radio buttons.

I tried the dev release and that doesnt seem to be working either..

Yes, i seem to be having the same problem as "#260575: Avatars not showing on edit-profile / IE7" :(

errors i get when i upload a common 50x50 jpeg (both ways) with 5.x-2dev version:

" * warning: Division by zero in mydomain/public_html/includes/image.inc on line 125.
* warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in mydomain/public_html/includes/image.inc on line 238.
* warning: imagecopyresampled(): supplied argument is not a valid Image resource in mydomain/public_html/includes/image.inc on line 264.
* warning: imagejpeg(): supplied argument is not a valid Image resource in mydomain/public_html/includes/image.inc on line 339.
* warning: imagedestroy(): supplied argument is not a valid Image resource in mydomain/public_html/includes/image.inc on line 267."

can you make any sense out of this? :) thanks,

-Rob

stella’s picture

Can you attach the file you are trying to upload? As I can't reproduce those errors on upload. The non-appearance of avatars will be dealt with in #260575: Avatars not showing on edit-profile / IE7

Cheers,
Stella

Anonymous’s picture

StatusFileSize
new1.79 KB

one of the weirdest things too is that it comes up with errors and only shows radio buttons and whatnot, but if you actually select a random radio button, that corresponding avatar truly becomes your avatar. maybe an issue with the way it is trying to display it..?

more info:

-its not just THAT avatar file but ANY avatar i attempt to upload comes up with these symptoms
-still only see radio buttons in internet explorer (ie6)
-i have primarily been using firefox however

could the errors be a typo in the pHp? i wouldnt think so because then it would obviously be reproducable..

is there anyway i can uninstall this program, but also delete every trace of this module from my website/database??? maybe if i do that then try and reinstall the dev version it will help.

Thanks!
Rob

Anonymous’s picture

stella’s picture

Can you send me a link to your site? My contact form is enabled if you wish to do so privately. Are you using TinyMCE? If so, can you try disabling it to see if that fixes either of the issues (upload errors, display issue).

To completely uninstall the module, first disable the module at admin/build/modules and then uninstall it at admin/build/modules/uninstall.

Cheers,
Stella

Anonymous’s picture

mvdconline.com, however im not sure how the url would seeing as the "select avatar" screen isnt even appearing during registration

disabled tinymce, same error, still no picture

stella’s picture

The "select avatar" screen may not be appearing because you haven't enabled the option on the avatar selection settings page or you may not have given anonymous users the "view avatars" permission.

I created an account on your website but I couldn't find the avatar selection form at all on the "my account" edit page. I don't the correct permissions to access the "manage avatars" page to see if I can reproduce the problem there.

Cheers,
Stella

Anonymous’s picture

i just enabled the access to select avatars - check it out, maybe you will get whats happening..

Thanks!
Rob

stella’s picture

Hi robbartn,

Sorry for the delay in responding to this. I just tried checking out the site again, but the site is disabled, so I can't take a look at your issue.

Cheers,
Stella

stella’s picture

Try the latest dev release. All of the avatar selection paging code has been re-written, so I think you won't encounter this issue any more. Just make sure you clear your browser cache after upgrading.

Cheers,
Stella

stella’s picture

Try one of the new releases: Avatar Selection 5.x-2.6 and 6.x-1.4. Note, the 5.x-2.6 version is dependant on jQuery Update.

Cheers,
Stella

taulars’s picture

Just updated to 5.x-2.6 and it appears I'm having the same issue. However, I uploaded a new avatar and that one appears just fine. Since I'm using Firefox, it prints out the name of the other avatar pics it's trying to locate and I tried to view the image and found out that it is duplicating part of the location path. So instead of printing out files/avatar_selection.avatar.jpg, it prints this out files/avatar_selection/files/avatar_selection/avatar.jpg. So I'm not sure if there's a problem with the actual module not updating the database correctly or if I didn't update the module correctly. Either way, I'd appreciate any help.

Thanks,
Brent

stella’s picture

taulars: can you send me a link to your site? My contact form is enabled if you wish to do so privately.

Cheers,
Stella

stella’s picture

I think the easiest way to rectify this is to run the "bulk upload / delete" option on admin/settings/avatar_selection/upload. If that fails to work, delete everything from the avatar_selection directory and then try this option again.

Cheers,
Stella

taulars’s picture

Alright, I tried the "bulk upload/delete option" and it found all the avatars and said it deleted all the old ones, but when I went to "manage avatars," the new ones showed up, but the old ones that don't display anything were still there. I also tried manually deleting each one, but they won't delete for some reason. So then I deleted everything from the avatar selection directory and tried the "bulk upload/delete" option again and it said it removed all the avatars. But then I check the "manage avatars" page and the old ones are still there. Any other ideas?

Thanks,
Brent

taulars’s picture

I had one of our developers take a look at it and he removed the the extra entries. This is on our test site, however, so if there's an actual error in the module when you update it, it'd be great if that could get fixed before we update the module on our live site. Although I'm sure it's entirely possible I just screwed something up when I did the updating. Anyways, thanks for all your help
-Brent

stella’s picture

Status: Postponed (maintainer needs more info) » Fixed

This is a different issue than the one originally reported in this issue for 5.x-2.5. There may be a problem upgrading from 5.x-2.5 to 5.x-2.6. It looks like one of the updates run by update.php never made it into the release. I've opened a separate issue for this in #280612: avatars don't appear after upgrade to 5.x-2.6

Cheers,
Stella

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.