Skip to:

Opened 16 years ago

Closed 16 years ago

Last modified 3 years ago

#33 closed defect (bug) (fixed)

Front end profile links broken when using sub-directories

Reported by: sollaires's profile sollaires Owned by:
Milestone: Priority: major
Severity: Version:
Component: Keywords: profile, subdirectories


Revision 204, using sub-directories

Steps I can take to reproduce:

  • Log in on the front end (a profile page)
  • Click the profile link
  • Click Edit Profile

Many navigation links now have an incorrect extra /profile/ portion to them. For example, the 'Change Avatar' link now points to '/user/profile/profile/change-avatar'. Clicking on any of them basically goes back to the main profile page and continues adding directories to the active URL.

This problem happens in a number of other places on the front end as well. Going into blogs or messages can quickly corrupt the URL and most links end up going to the wrong place.

Looks like an issue with relative paths that may or may not happen with sub-domains. (This all seemed to work on

Change History (5)

#1 @sollaires
16 years ago

HTML source of the rendered BP navigation:


<a id="profile" href="profile">Profile</a>


<a id="blog" href="">Blog</a>

<li class="current">

<a id="messages" href="messages/">Messages</a>


<a id="wp-logout" href="">Log Out</a>


#2 @sollaires
16 years ago

This problem actually is an issue with plugin load order. I tracked it down and found that on my server, the xprofile plugin was being loaded before bp-core and so the $loggedin_domain and $current_domain were not being set when the profile links were being setup.

This stems from how WPMU loads plugins - it simply opens up the mu-plugins directory using readdir() and the behavior is as follows (from

"Returns the filename of the next file from the directory. The filenames are returned in the order in which they are stored by the filesystem."

Making all the non-core plugins have to do a require_once( 'bp-core.php' ) should fix this problem.

#3 @apeatling
16 years ago

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

Thanks for debugging this. A core include_once has been added to the top of each plugin.

#4 @(none)
15 years ago

  • Milestone Extended Profiles - v0.3 deleted

Milestone Extended Profiles - v0.3 deleted

This ticket was mentioned in Slack in #buddypress by imath. View the logs.

8 years ago

Note: See TracTickets for help on using tickets.