Skip to:
Content

Opened 4 years ago

Closed 2 years ago

Last modified 2 years ago

#2574 closed defect (bug) (fixed)

Uploaded avatars yet again not showing on multi-site blogs

Reported by: linusf Owned by:
Milestone: 1.5.5 Priority: normal
Severity: normal Version:
Component: Core Keywords:
Cc:

Description

As of WordPress 3.0.1 uploaded avatars through BuddyPress do not show on user blogs. Instead the Gravatar takes it's place, it is most likely due to some incorrect upload pathing just like the last time.

Change History (11)

comment:1 follow-up: johnjamesjacoby4 years ago

Can anyone confirm this? I have multiple setups running 3.0.1 without issue.

comment:2 pisanojm4 years ago

I'm not using User blogs... so I can't help... Sorry.

comment:3 in reply to: ↑ 1 hcleary4 years ago

Replying to johnjamesjacoby:

Can anyone confirm this? I have multiple setups running 3.0.1 without issue.

Yes. I am running WP 3.0 MS + BP 1.2.5.2. The GD LIbrary is installed. I haven't been able to upload any local avatars. When I try to upload a jpg that's 100x100px, the crop tool appears. Whether I resize it or not, I'll get a confirmation message that the avatar has changed, yet my Gravatar remains.

Also, I just tried to change my avatar on buddypress.org. When I clicked on "Upload File" it took to me an "Oops! This link appears to be broken." error message at http://buddypress.org/community/members/hcleary/profile/change-avatar/

comment:4 follow-up: johnjamesjacoby4 years ago

  • Milestone changed from 1.2.6 to 1.3

Avatars on this site are currently broken.

It sounds to me like a folder permissions issue? Can you try manually creating the necessary folders and see what happens?

I'm going to bump this to 1.3 to get it out of 1.2.6 milestone. I've tested this to the hills and cannot find any drop out in the process.

comment:5 in reply to: ↑ 4 linusf4 years ago

Replying to johnjamesjacoby:

Avatars on this site are currently broken.

It sounds to me like a folder permissions issue? Can you try manually creating the necessary folders and see what happens?

I'm going to bump this to 1.3 to get it out of 1.2.6 milestone. I've tested this to the hills and cannot find any drop out in the process.

This will solve the problem: http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/custom-avatars-arent-shown-on-single-blogs-in-wpmu/?topic_page=1&num=15
I think the ticket can be discarded in it's current form

comment:6 djpaul3 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3851]) Fix URL to uploaded avatars on non-BP_ROOT_BLOG sites. Fixes #2451, #2574 and #2968. (branch)

comment:7 djpaul3 years ago

(In [3852]) Fix URL to uploaded avatars on non-BP_ROOT_BLOG sites. Fixes #2451, #2574 and #2968. (trunk)

comment:8 unsalkorkmaz2 years ago

  • Keywords changed from avatar, multisite, blog to avatar multisite, blog
  • Resolution fixed deleted
  • Severity set to normal
  • Status changed from closed to reopened

not sure why but i still have same problem and this solution worked for me @ buddypress 1.5.4 / Wordpress 3.3.1:

function nfm_bp_avtar_upload_path_correct($path){
	if ( bp_core_is_multisite() ){
		$path = ABSPATH . get_blog_option( BP_ROOT_BLOG, 'upload_path' );
	}
	return $path;
}
add_filter('bp_core_avatar_upload_path', 'nfm_bp_avtar_upload_path_correct', 1);

function nfm_bp_avatar_upload_url_correct($url){
	if ( bp_core_is_multisite() ){
		$url = get_blog_option( BP_ROOT_BLOG, 'siteurl' ) . "/wp-content/uploads/";
	}
	return $url;
}
add_filter('bp_core_avatar_url', 'nfm_bp_avatar_upload_url_correct', 1);

can you check it please?
(problem was avatars were not showing on non-root site's admin panel bar)

Last edited 2 years ago by unsalkorkmaz (previous) (diff)

comment:9 boonebgorges2 years ago

  • Keywords avatar multisite blog removed
  • Milestone changed from 1.5 to 1.5.5

Confirmed. The local avatar directory is not being determined properly when on non-root sites.

comment:10 boonebgorges2 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [5897]) Switch to root blog to get avatar upload directory in bp_core_avatar_upload_path().
Fixes problem that prevented locally-uploaded avatars from appearing properly on non-root sites.
Fixes #2574

comment:11 boonebgorges2 years ago

(In [5898]) Switch to root blog to get avatar upload directory in bp_core_avatar_upload_path().
Fixes problem that prevented locally-uploaded avatars from appearing properly on non-root sites.
Fixes #2574

Note: See TracTickets for help on using tickets.