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)
  • Avatar of r-a-y
    r-a-y
    Moderator

    @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.

    Avatar of Doug Daulton
    doug.daulton
    Participant

    @dougdaulton

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

    Avatar of r-a-y
    r-a-y
    Moderator

    @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.

    Avatar of r-a-y
    r-a-y
    Moderator

    @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:

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

    Avatar of Doug Daulton
    doug.daulton
    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?

    Avatar of Doug Daulton
    doug.daulton
    Participant

    @dougdaulton

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

    http://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');

    Avatar of Doug Daulton
    doug.daulton
    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]

    Avatar of r-a-y
    r-a-y
    Moderator

    @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.

    Avatar of Doug Daulton
    doug.daulton
    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.

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    There could be some formatting issues on that blog post.

    Try this:

    http://pastebin.com/EzQZ5bNz

    Avatar of Doug Daulton
    doug.daulton
    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.

    Avatar of Doug Daulton
    doug.daulton
    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?

    Avatar of Ali Erkurt
    Ali Erkurt
    Participant

    @alierkurt

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

    Avatar of Doug Daulton
    doug.daulton
    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.

    Avatar of Ronia
    ronia
    Participant

    @ronia

    Avatar of r-a-y
    r-a-y
    Moderator

    @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?

    Avatar of Doug Daulton
    doug.daulton
    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.

    Avatar of r-a-y
    r-a-y
    Moderator

    @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?

    Avatar of Doug Daulton
    doug.daulton
    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.

    Avatar of Doug Daulton
    doug.daulton
    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.

    Avatar of Doug Daulton
    doug.daulton
    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

    Avatar of Doug Daulton
    doug.daulton
    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

    Avatar of TW
    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)

You must be logged in to reply to this topic.