WordPress.org

Ready to get started?Download WordPress

Forums

User Avatar
Doesn't work after image crop (14 posts)

  1. TulsaWeb
    Member
    Posted 1 year ago #

    Upload? check
    Crop? check
    View cropped avatar? broken image
    Updated picture? no picture

    http://wordpress.org/extend/plugins/user-avatar/

  2. Tatichka
    Member
    Posted 1 year ago #

    Hi,

    Changed line 602 of user-avatar.php into this
    $avatar_url = get_site_url().$avatar_src;

    Worked for me. Good luck!

  3. leorexregis
    Member
    Posted 1 year ago #

    Changed the line 602 below with your code but it didn't work for me. :(

    Line 602

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

  4. Tatichka
    Member
    Posted 1 year ago #

    Did you check your picture URL (right click on the broken image, copy URL and check the path)

  5. leorexregis
    Member
    Posted 1 year ago #

  6. leorexregis
    Member
    Posted 1 year ago #

    the domain is doubled I don't know why.

  7. Tatichka
    Member
    Posted 1 year ago #

    OK try with
    $avatar_url = $avatar_src;

  8. Tatichka
    Member
    Posted 1 year ago #

    are you using WP MU or single?

  9. leorexregis
    Member
    Posted 1 year ago #

    it worked! thanks a lot for your quick response. :)

  10. Tatichka
    Member
    Posted 1 year ago #

    you're welcome ! I was stuck myself on something and was spending my time on WordPress.org, hence my quick response ;)

  11. leorexregis
    Member
    Posted 1 year ago #

    single I guess. publishing under one domain.

  12. Taurolyon
    Member
    Posted 1 year ago #

    I had the same problem.

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

    With:
    $avatar_url = $avatar_src;

    Reuploaded, cropped, and was up and running. Dev may want to consider patching.

  13. ozks
    Member
    Posted 1 year ago #

    i crop the image and then just show me a blank square.
    my problem was the plugin user role, i unmark upload files for all the users

  14. PierG
    Member
    Posted 11 months ago #

    Thanks Tatichka, it worked for me too !

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.