Skip to:
Content
Pages
Categories
Search
Top
Bottom

Issue with Avatars: wrong upload path


  • giobby
    Participant

    @giobby

    Hi guys,

    First of all let me thank you for the amazing work you are doing with BP.
    I’ve been building a BP-based website for few months, always keeping up to date wordpress and BP.

    Suddenly the avatar functionalities stopped working.
    I can see that BP tries to upload the avatar in the wrong folder: <user_id>/avatars/<user_id> (e.g.: Upload Failed! Error was: Unable to create directory 47/avatars/47. Is its parent directory writable by the server?).
    I am sure before the upload directory was uploads/avatars/<user_id>

    I’ve tried to reload previous backups but the problem is still there.
    I’ve seen someone had the same issue once and he managed to fix it by reinstalling everything.

    I can’t afford to reinstall everything at the moment
    Do you have any suggestion on how could I possibly debug this?

    I am using the latest version of WP (4.7.3) and BP (2.8.1).

    Thank you in advance,

    Gio

Viewing 4 replies - 1 through 4 (of 4 total)

  • giobby
    Participant

    @giobby

    FYI – I’ve also tried to disable all the plugins except buddypress and to use a standard wordpress template (twentyseventeen), but the problem is still there.


    danbp
    Participant

    @danbp

    Avatar upload path is: ../wp-content/uploads/avatars/user_ID

    Have you modified something in your htaccess file ?
    Have you added some custom function to your theme or to bp-custom.php ?

    Control also all your media settings on dashboard and don’t forget to check the permalinks.

    Finally, go to your server and check the wp-content/uploads/ permissions, including sub-folders.
    (ie. 755, 705)


    giobby
    Participant

    @giobby

    I am not sure what the issue was, but I’ve just change the media settings and put them back to that they were and this started working again.

    Thanks!


    danbp
    Participant

    @danbp

    Sounds like a permalink refresh. Difficult to diagnose for a frequent issue. Often in this case, by simply going on the permalink page and click on Save can restart the whole thing. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar