WordPress.org

Ready to get started?Download WordPress

Forums

User Avatar
Uploaded avatar doesn't show up (21 posts)

  1. Lilou777
    Member
    Posted 3 years ago #

    Although I can upload and even crop an avatar it doesn't show up after clicking "crop image". The default avatar is displayed instead.

    Tested in Firefox and Safari with Mac OS 10.6.6.

  2. enej
    Member
    Plugin Contributor

    Posted 3 years ago #

    I am hoping that this issue will be fixed in the update.

  3. web00132
    Member
    Posted 3 years ago #

    I've got the same problem, even after updating. My Gravatar image is showing even after uploading/cropping and I'm not getting any errors.

  4. enej
    Member
    Plugin Contributor

    Posted 3 years ago #

    What is the url to you image?

    does it start with something like
    http://localhost.localdomain/wp-content/plugins/user-avatar/user-avatar-pic.php?id=2&w=16&radom=1302047345

    Can you tell me if you have images inside your uploads/avatars folder?

    Cheers

  5. web00132
    Member
    Posted 3 years ago #

    Hm, we've got our uploads in a special place ("/private/var/docs") so i guess that's where the problem lies.

  6. enej
    Member
    Plugin Contributor

    Posted 3 years ago #

    Yes it might be it,

    you should be able to change the variable in
    WP_CONTENT_DIR on line 13 of user-avatar-pic.php

    to the folder of your wp-content directory.

    Let me know if that does the trick

    Good luck

  7. web00132
    Member
    Posted 3 years ago #

    Thanks for your reply! I can't seem to work it out though, even if I create a folder called 'avatar' and change the constant WP_CONTENT_DIR. On the settings page, under 'Media', I still have my uploads folder set to "/var/www/data/sitename/docs" - could that affect your plugin somehow?
    I've also tried putting "/var/www/data/sitename/docs" in WP_CONTENT_DIR (and keeping an eye on AVATARS_DIR so nothing should break).

  8. tamantit
    Member
    Posted 3 years ago #

    Hi, I had the same problem yesterday.

    I fixed restoring file permissions on my wp install (wp is running on a linux server).

    Bye

  9. enej
    Member
    Plugin Contributor

    Posted 3 years ago #

    hi web00132

    I am not sure if you got it working yet.
    The plugin works the following way.
    It uploads the avatar images that is inside your uploads folder.

    to determine what your uploads folder is output what ever you defined
    WP_CONTENT_DIR to be. User avatar then created the folder itself. if it doesn't exits. You want to give the write permission. by your webserver since it will try to write to it. best best way to check tat this set up is woking is to see if you have images inside that folder. (WP_CONTENT_DIR."/uploads/avatars/") alse the images are going to be inserted in to subfolder that correspond to the user id/

    if that is not the case for you the there is some sort of permission error. Try restoring them.

    So I think what might be happening is that you have some sort of permission issue.

    I hope my answer helped.

  10. davidkooo
    Member
    Posted 3 years ago #

    Hi, i have very similar problem. Image uploads just fine, cropping works, but then it shows "here is your avatar screen" and booom there is a default wordpress avatar.

    File permission are ok. uploads - 777 / avatars - 777 and folder where should be croped avatar stored (folder with ID number) is 755, but inside is nothing.

    You can check my site here http://codhq.eu/

  11. yepps
    Member
    Posted 3 years ago #

    Hi, same problem picture were uploaded and inside folder but do not show up?

  12. yepps
    Member
    Posted 3 years ago #

    Hi, this could be happend after the inst. of "Top Authors" but I deactivated it and still no avatar. pictures were uploaded and croped correctly, also stored in the correct folder, they just don't show up. I even tried with version 1.2... same problem!????

  13. enej
    Member
    Plugin Contributor

    Posted 3 years ago #

    hi yepps

    Can you check that the place where the avatars are suppoed to show up use get_avatar function. also make sure that the get_avatar filter is not being hijacked by a different plugin. :S

    I can't think of another reason why this might be happening

  14. kylesalonga
    Member
    Posted 3 years ago #

    Hi enejb,

    Great work btw but not working for us either. We've tried replacing (WP_CONTENT_DIR."/uploads/avatars/") with the full URL. still no luck. However, we are not able to change permissions for folder "Avatars" from 755 to 777 via FTP. Keeps saying operation not permitted. Any idea as to the fix?

  15. kylesalonga
    Member
    Posted 3 years ago #

    It appears its not uploading any photos to the server. And it posting a picture of this instead:
    screenshot

  16. kylesalonga
    Member
    Posted 3 years ago #

    We're on v3.2.1 (did not work on 3.2 either)
    http://www.bistrospot.com/

  17. mehral
    Member
    Posted 2 years ago #

    I have similar problem , I can upload image and then crop the image but after click on crop button , nothing happen , I check the path "../ uploads/avatars/ " and set permission to 777 -- the image uploads in this path additional to the avatar doesn't show in my website also the default avatar disappears .

  18. mehral
    Member
    Posted 2 years ago #

    I checked this plugin on local server, well it's work but on my web server doesn't work, I think timthumb-config.php has problem about configuration address url for instances in my local server
    http://localhost/project/physics/wp-content/plugins/user-avatar/user-avatar-pic.php?src=http://localhost/project/physics/wp-content/uploads/avatars/3/1326186049-bpfull.jpg&w=150&id=3&random=1326186049
    show my avatar , but on web server such as this url doesn't show any avatar

  19. invision-studios
    Member
    Posted 2 years ago #

    I'm also having the same problem:

    1) Select & upload image, then crop it
    2) Image will not display in Edit User screen or on web page
    3) Image is physically in the correct location -- I can copy URL from code & paste in browser address & image loads fine.
    4) Permissions all set to 777

    It looks like the URL that's being generated has some extra code in that doesn't appear to do anything? Perhaps it's supposed to pass information to one of the pages, but it doesn't.

    On or about line 603 in user-avatar.php, find this code:

    $avatar_url = plugins_url('/user-avatar/user-avatar-pic.php')."?src=".$avatar_src ."&w=".$width."&id=".$item_id."&random=".$file_time;

    and replace it with this:
    $avatar_url = $avatar_src;

    Do this with caution -- it's just a hack to get the images to show up. Not sure what other effects it may have, but it appears to work fine.

  20. mehral
    Member
    Posted 2 years ago #

    invision-studios thanks .
    really works , I thinks this hack creates a direction way to achieve uploads folder => avatars .

  21. slang800
    Member
    Posted 2 years ago #

    thanks, invision-studios... this works, except for displaying the image for cropping.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic