I have modern versions of WP_MU + BuddyPress upgraded from _WPMU_ and some old BuddyPress.
But the possibility for users to add avatar via "My Profile" menu has disappeared.
I've tried all hooks (including hard coded variants) for bp-custom.php from this URLs:
http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/avatar-arent-shown-after-the-upgrade/
http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/custom-avatars-arent-shown-on-single-blogs-in-wpmu/
It doesn't help.
Some info on my installation:
* only one main blog on the example.com is active
* avatar path - example.com/wp-content/blogs.dir/1/files/avatars
* htaccess
# Use PHP5 Single php.ini as default
AddHandler application/x-httpd-php5s .php
RewriteEngine On
RewriteBase /
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
#RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin$
RewriteRule ^(.+)$ $1/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>
So please help to get the ability to add avatars back.
Oshik Ernst answers:
try changing this :
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
#RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
TO THIS:
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
AND disable in your wp-config any
define( 'BP_AVATAR_URL',.........
Alex B. comments:
Oshik, it didn't help.
Peter Michael answers:
Is the option 'Disable avatar uploads?' set to 'No' in BuddyPress->General Settings?
Alex B. comments:
Yes, it's set to "No" as well as "Avatar Display" set to "Show Avatars" in "Settings > Discussion".
Peter Michael comments:
Are you using a custom theme? Does it work when you use the default BP theme?
Alex B. comments:
Avatars are displayed on the site but can't be changed/added within user profile/control panel. So the problem not in the theme.
Peter Michael comments:
The default profile edit screen is in 'wp-content/plugins/buddypress/bp-themes/bp-default/members/single/profile/edit.php', the avatar bit is in 'wp-content/plugins/buddypress/bp-themes/bp-default/members/single/profile/change-avatar.php'.
Unless I missed something here, the 'user profile/control panel' is within the theme. Please confirm that it doesn't work when you switch to the bp-default theme.
Alex B. comments:
<blockquote>Unless I missed something here, the 'user profile/control panel' is within the theme.</blockquote>
I meant that users don't have avatar uploading field in WP control panel > Users > Your Profile.
The previously uploaded avatars are displayed on the site with no problems.
The installed theme doesn't have any avatars features.
Thanks.