Skip to:
Content
Pages
Categories
Search
Top
Bottom

Wrong Avatar Folder


  • WPWally
    Participant

    @wordpresswally

    Whenever a user tries to upload an avatar, they get this error message:

    Upload Failed! Error was: Unable to create directory wp-content/uploads/avatars/1407/avatars/1407. Is its parent directory writable by the server?

    This started happening after I updated to the latest version of WordPress. It seems like it is pointing to the wrong path for some reason. Is there a way I can fix this?

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

  • modemlooper
    Moderator

    @modemlooper

    Was is working before? Is it multisite?


    WPWally
    Participant

    @wordpresswally

    Yes it was working before, and no it is not multisite. I used svn to update WordPress.


    modemlooper
    Moderator

    @modemlooper

    Is WordPress installed in the root or in a folder? sounds like the install got borked. In future I would always use the admin to update WP. Also, this error has happened before when WP was installed using a one click host installer.


    WPWally
    Participant

    @wordpresswally

    In a folder on my localhost installation and if you consider the public folder root, root on the server.


    WPWally
    Participant

    @wordpresswally

    I even removed the entire installation, reinstalled 3.6.1 and I am still getting the same issue. Another odd thing about this is that local avatars are showing up on localhost but not on the server copy. None of this makes any sense. My directory permissions are correct, when I run wp_debug I only get the strict errors for BuddyPress (that are showing up because of backwards compatibility). I have run out of ideas. I was hoping there was something I can place in functions.php or bp-custom.php that would cause it to look in the right folder for the uploads.


    WPWally
    Participant

    @wordpresswally

    Sorry, forgot to add the details:

    1. Which version of WordPress are you running?
    3.7.1
    
    2. Did you install WordPress as a directory or subdomain install?
    Directory
    
    3. If a directory install, is it in root or in a subdirectory?
    Root on server / subdirectory on localhost (I have two copies for emergencies like this but this time both are behaving badly)
    
    4. Did you upgrade from a previous version of WordPress? If so, from which version?
    Yes, 3.6.1
    
    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
    Yes
    
    6. Which version of BP are you running?
    1.8.1
    
    7. Did you upgraded from a previous version of BP? If so, from which version?
    1.8
    
    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
    Yes: AddThis Social Bookmarking Widget / BuddyPress Template Pack / Edit Author Slug / Login With Ajax / Popular Widget / Video Thumbnails (disabled all plugins save for BuddyPress and the behavior continues)
    
    9. Are you using the standard BuddyPress themes or customized themes?
    Customized
    
    10. Have you modified the core files in any way?
    No
    
    11. Do you have any custom functions in bp-custom.php?
    Yes (2 lines - excluding php open and close tags): 
    
    <?php
    add_filter( 'bp_use_wp_admin_bar', '__return_false' );
    define ( 'BP_DISABLE_ADMIN_BAR', true );
    ?>
    
    12. If running bbPress, which version?  Or did your BuddyPress install come with a copy of bbPress built-in?
    Not running bbPress
    
    13. Please provide a list of any errors in your server's log files.
    None
    
    14. Which company provides your hosting?
    nearlyfreespeech.net
    
    15. Is your server running Windows, or if Linux; Apache, nginx or something else?
    Linux: Apache (both localhost and server)
    

    I have also just removed the avatars folder and it does indeed create one as well as the userid folder although that remains blank (no files are placed there) and the same error as my original post appears. Hope that helps in solving this.


    WPWally
    Participant

    @wordpresswally

    Oh and forgot to mention that I get the same issue with the BuddyPress default theme.


    modemlooper
    Moderator

    @modemlooper

    disable BuddyPress Template Pack. It does not work with current BuddyPress


    tunjic
    Participant

    @tunjic

    Hi, I am having this error too. Received it when trying to upload an avatar.

    Upload Failed! Error was: Unable to create directory wp-content/blogs.dir/1/files/avatars/2315/avatars/2315. Is its parent directory writable by the server?

    Is the duplicate looking url an issue? (/avatars/2315/avatars/2315)

    This is a root install of WP 3.7.1, sub-directory multisite, BP 1.8.1. No bp-custom.php


    tunjic
    Participant

    @tunjic

    OK, Fixed this issue by re-installing WP from the backend (one click “Re-install now), and setting permissions of /avatars/ to 777. All is well. Oddly, I then dialed permissions back to 755 and everything is still fine.

    Nice easy fix.


    WPWally
    Participant

    @wordpresswally

    Yup, that did it. Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Wrong Avatar Folder’ is closed to new replies.
Skip to toolbar