[buddypress-trac] [BuddyPress Trac] #5332: Run the URI catching methods when root profiles are enabled
buddypress-trac
noreply at wordpress.org
Tue Jan 14 10:52:37 UTC 2014
#5332: Run the URI catching methods when root profiles are enabled
--------------------------+------------------------------
Reporter: stevenkword | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version: 1.9.1
Severity: normal | Resolution:
Keywords: needs-patch |
--------------------------+------------------------------
Changes (by imath):
* keywords: has-patch dev-feedback => needs-patch
* version: => 1.9.1
Comment:
Replying to [comment:6 stevenkword]:
Hi @stevenkword, Boone,
I've managed to reproduce. And actually, bug is a little bit more complex
than it seems to be.
1/ This only happens if multisite config is set to subfolders,
{{{BP_ENABLE_ROOT_PROFILES}}} is set to true and the username === blog
slug.
In this very particular case as {{{site.url/slug}}} is the same url for
user's profile and user's blog then we have this trouble.
I need to investigate further, but i strongly think that it could be the
case with each member's username. For instance if i choose a blog slug
different from my username but the same than another username, then
there's a strong chance that the corresponding user will allways see my
blog instead of his profile !
2/ This also causes a notice error with
{{{WP_Query::get_queried_object()}}} as in {{{bp_core_load_template()}}}
the members page id is not affected to $object_id around line 357.
From my point of view and only for this particular case (multisite
subfolders/root profile):
here are the options :
1/ the simpliest : if multisite is set to subfolders, then neutralize the
effect of {{{BP_ENABLE_ROOT_PROFILES}}} to avoid any problems. It means,
root profile will only be available for subdomains multisite.
2/ Treat usernames as forbidden blog slugs but requesting all usernames
while registering a new blog may be a heavy process !
Thanks for the patch @stevenkword, but i think it's not a good solution as
it actually loads the user's profile inside user's blog but completely
breaks user's blog as for instance trying to reach the "hello world" post
brings you to a 404.
I'm working on it and will suggest an alternative patch tonight.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5332#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list