Skip to:

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#2451 closed defect (bug) (fixed)


Reported by: windhamdavid Owned by:
Milestone: 1.5 Priority: normal
Severity: Version:
Component: Component - Core Keywords:
Cc: PeterAnselmo


with BP_ENABLE_MULTIBLOG set, subdomain and subdirectory avatars go missing.
replicated with localhost and remote ~ with 2.9.2 and 3.0

Change History (6)

#1 @johnjamesjacoby
5 years ago

Can you try the 1.2 branch and report back?

#2 @windhamdavid
5 years ago

the 1.2 branch is working fine and I noted the upcoming merge ~

#3 @windhamdavid
5 years ago

I diff'd the branch and 1.2.5 tag and didn't see any difference in the way bp_core_avatar_url is being handled. I'm not sure of what is merging from the 1.2 branch and trunk or the best way to patch this, but $upload_dirbaseurl? doesn't seem to respond and this simple filter works for 1.2.5 and 3.0 avatars in multiblog mode -

#4 @PeterAnselmo
5 years ago

  • Cc PeterAnselmo added

I can confirm this.

The problem is in bp_core_avatar_upload_path() and bp_core_avatar_url().

if you're using a sub blog, it returns "wp-content/blogs.dir/1/files"
if you're using the main blog, it returns "wp-content/uploads"

#5 @djpaul
5 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)

#6 @djpaul
5 years ago

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

Note: See TracTickets for help on using tickets.