• downloaded profile pic plugin. picture uploaded to correct folder but doesn’t show. set to 777. what am i doing wrong?

Viewing 5 replies - 1 through 5 (of 5 total)
  • if your wp is located subdirectory.
    ex} https://example.com/wordpress/
    it may happen.
    I solved this problem as follow.

    edit profile-pic.php line 699
    $path = profilepic_internal_cleanpath('/' . $profilepic_options['dir'] . '/' . $profilepic_displayoptions['filename']);

    as

    $path = profilepic_internal_cleanpath(get_settings('siteurl') . '/' . $profilepic_options['dir'] . '/' . $profilepic_displayoptions['filename']);

    i think this is bug.

    Same thing is happening to me.
    The plugin is setup right and the picture is uploaded to a “profile-pic” folder in my wp-content folder.

    I tried your method dogierider but it failed.

    https://www.uicaaiv.org/AAIVBLOG (this is my website)

    All the pictures show a question mark and when I right click and open in new tab the picture I get this error “404 not found”

    And it shows that because wordpress is looking into a wrong folder
    https://uicaaiv.org/wp-content/profile-pics/6.jpg”

    It should be looking into
    https://uicaaiv.org/AAIVBLOG/wp-content/profile-pics/6.jpg”
    which does exist in my server.

    Can anyone please help me to fix which line in the setting for this to work? Thanks so much!

    I tried this the picture now shows up on the blog but next to “current:” in the profile page it has diassapered – so the complete opposite

    Author comment doesnt add site url and hence picture is not found.

    Problem shows when you have a url like

    https://www.mysite.com/wordpress

    This patch worked for me

    wp-content/plugins/profile-pic/profile-pic.php
    ===================================================================
    — wp-content/plugins/profile-pic/profile-pic.php (revision 1066)
    +++ wp-content/plugins/profile-pic/profile-pic.php (working copy)
    @@ -588,7 +588,7 @@
    }
    }

    – $new_image = profilepic_internal_pickimage($id);
    + $new_image = profilepic_internal_cleanpath(get_settings(‘siteurl’) . profilepic_internal_pickimage($id));

    // does user have image?
    $array = explode(‘default.jpg’, $new_image);

    Can someone tell me how to fix this in Windows Home Server please?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Profile Pic] picture is unavailable’ is closed to new replies.