Forums

[Plugin: Profile Pic] picture is unavailable (3 posts)

  1. jjoines
    Member
    Posted 7 months ago #

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

  2. dogierider
    Member
    Posted 7 months ago #

    if your wp is located subdirectory.
    ex} http://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.

  3. stephenwithph
    Member
    Posted 1 month ago #

    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.

    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
    "http://uicaaiv.org/wp-content/profile-pics/6.jpg"

    It should be looking into
    "http://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!

Reply

You must log in to post.

About this Topic