Skip to:
Content
Pages
Categories
Search
Top
Bottom

Missing avatars with WP3.0 & BP1.2.5

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

  • r-a-y
    Keymaster

    @r-a-y

    Avatars are not stored in the DB.

    Doug, it looks like you upgraded from WPMU 2.9.2 to WP 3.0. Chances are you did not fully accomplish all the upgrading steps:
    http://developersmind.com/2010/06/17/upgrading-wordpress-mu-2-9-2-to-wordpress-3-0/

    Follow everything listed there.


    Doug
    Participant

    @dougdaulton

    @ray – Where are they stored? Working on testing your soln.


    r-a-y
    Keymaster

    @r-a-y

    Follow the instructions first, primarily you need to edit the .htaccess file and you need to move /wp-includes/ms-files.php to /wp-content/.

    FYI, avatars are stored in the uploads directory, which differs depending on what flavor of WordPress you’re using.

    For single WP, that would be /wp-content/uploads/.
    For multisite, that would be /wp-content/blogs.dir/BP_ROOT_BLOG_ID/files.


    r-a-y
    Keymaster

    @r-a-y

    @doug.daulton – Just saw your screenshots. Make sure BuddyPress is activated network wide. See if that fixes your problem.

    *Edit: If that doesn’t work, you can temporarily set your BP_AVATAR_URL and BP_AVATAR_UPLOAD_PATH in wp-config.php:
    https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/bp-1-2-4-custom-bp_avatar_url-change/#post-56257


    Doug
    Participant

    @dougdaulton

    @ray … looks like I do not have an .htaccess file … which is weird. Is there a standard .htaccess file that should be present?


    Doug
    Participant

    @dougdaulton

    So the wp-config.php hack found here does not work:

    https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/bp-1-2-4-custom-bp_avatar_url-change/#post-56257


    // BP AVATAR HACK
    define('BP_AVATAR_URL','http://'.$_SERVER.'/wp-content/uploads');
    define('BP_AVATAR_UPLOAD_PATH',$_SERVER.'/wp-content/uploads');


    Doug
    Participant

    @dougdaulton

    So, creating an.htaccess file with just the following brought back my avatars, but now I cannot administer groups. Attempts to use the UI to admin group just gets me in an endless loop where it appears the system will not accept data.

    RewriteEngine On
    RewriteBase /

    # uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]


    r-a-y
    Keymaster

    @r-a-y

    If that is your entire .hatccess file, you need to get a full one.
    The .htaccess sample listed in the tutorial I linked to should work.


    Doug
    Participant

    @dougdaulton

    @r-a-y … I tried that full .htacess file and got a WSoD. I suspect something on the server side is causing the issue.


    r-a-y
    Keymaster

    @r-a-y

    There could be some formatting issues on that blog post.

    Try this:
    http://pastebin.com/EzQZ5bNz


    Doug
    Participant

    @dougdaulton

    @r-a-y – That .htaccess fixed the circular loop issue and appears to be getting us closer. But, now when I try to upload a new avatar, I get this error.

    Upload Failed! Error was: The uploaded file could not be moved to /scratch/VHOSTS/neoncon.com/dev/public/wp-content/blogs.dir/1/files/group-avatars/4.

    Another odd thing, you said the avatars are stored in wp-content/uploads? I show nothing in the dir.


    Doug
    Participant

    @dougdaulton

    OK. PEBKAC error. I was looking at the wrong dir (needed blogs.dir) and the permissions were wrong. Now, it appears to do the upload, but no files appear in the corresponding folder and nothing appears in the crop UI. If I understand the blogs.dir structure correctly, I think I it is trying to create a new blog dir (4) for the images that should apply to the core blog (1). Am I on the right track?

    I cannot be the only one with these issues. Can I?


    Ali Erkurt
    Participant

    @alierkurt

    Hey doug. I have the same issue, you’re not alone.


    Doug
    Participant

    @dougdaulton

    This is really frustrating. I was just about to go to production and now this. I can roll back if needed, but would love to get this working.


    ronia
    Participant

    @ronia


    r-a-y
    Keymaster

    @r-a-y

    Re:
    Upload Failed! Error was: The uploaded file could not be moved to /scratch/VHOSTS/neoncon.com/dev/public/wp-content/blogs.dir/1/files/group-avatars/4.

    If I understand the blogs.dir structure correctly, I think I it is trying to create a new blog dir (4) for the images that should apply to the core blog (1). Am I on the right track?

    The “4” signifies the group ID.

    *Edit – I’m just looking at one of your uploaded files:
    http://www.neoncon.com/wp-content/uploads/2010/04/badge-sharkbone-200f.png

    Is dev.neoncon.com a separate WP install site from http://www.neocon.com?
    By that, I mean, is http://www.neocon.com and dev.neocon.com based off the same WP 3.0 network install?


    Doug
    Participant

    @dougdaulton

    @r-a-y – That is a reference to the current live site, which is built of of WordPress 2.7 (not WPMU). To build this new site (dev.neoncon.com) copied the DB and files to dev and did upgrades from there. So, those references, which only exit within posts, should be broken.

    The issue is with new uploads, specifically the avatars for members and groups.


    r-a-y
    Keymaster

    @r-a-y

    I’m trying to get a better understanding of your install.

    Are you able to upload an image to the media library on dev.neoncon.com?


    Doug
    Participant

    @dougdaulton

    @r-a-y I just tried to do a standard media upload and it is not working. The behavior is the same. This was working before this upgrade.


    Doug
    Participant

    @dougdaulton

    So, I just did the following:

    1) Rolled back to my WP 3.0 & BP 1.2.4 installation.

    2) Made sure the .htaccess file was in place.

    3) Applied latest BP 1.2.5.2 upgrade.

    4) Now, all avatars are missing again. Gravatars still work.

    5) Created new group and tried to upload new avatar. System puked and said dir was not writable.

    6) Fixed permissions on blogs.dir and tried again. Same result.

    EXAMPLE IMG URL:
    http://dev.neoncon.com/files/group-avatars/6/628bd5cfa8f45777ef45f1c7d17cc3c0-bpthumb.jpg

    It looks like there is something missing from the path.


    Doug
    Participant

    @dougdaulton

    Just did the following:

    1) Rolled up to the old WP3/BP1.2.5 install

    2) Upgraded to BP 1.2.5.2.

    3) Same Result.

    EXAMPLE IMG URL
    http://dev.neoncon.com/files/group-avatars/6/628bd5cfa8f45777ef45f1c7d17cc3c0-bpthumb.jpg


    Doug
    Participant

    @dougdaulton

    OK. I am working again, now on BP 1.2.5.2. The issue was that I missed this IMPORTANT bit about the WP 3.0 upgrade for WPMU users …

    Move /wp-includes/ms-files.php to /wp-content/

    I assume that issue will be automated in future WP releases.

    Thanks for helping me troubleshoot.

    DD


    TW
    Participant

    @gpin75

    Thanks Doug for posting the fix! I had gotten everything else but missed moving this file also.

Viewing 23 replies - 1 through 23 (of 23 total)
  • The topic ‘Missing avatars with WP3.0 & BP1.2.5’ is closed to new replies.
Skip to toolbar