Buddypress menus fail with Domain Mapping

Upon applying the domain mapping plugin the buddypress MyAccount menu fails.

The site is a fresh build and I have tested this problem with both ARecord and CNAME mapping and with two separate sub sites.

I have a primary site running buddypress at primary.org
I establish a secondary site secondary.primary.org
All works fine accessing secondary.primary.org/

I map the site newname.org to the primary IP address and check the redirect sends me to the primary site

I log into the secondary site as admin and apply the domain mapping from newname.org

Site works fine within its own scope e.g. newname.org/sample-page/ gives the correct page

Checking buddypress on primary.org all is working fine so members gives
//primary.org/members/username/activity/ which works

I then go the subsite using the new URL
//newsite.org
everything still fine within the site scope BUT if I click on the Buddypress MyAccount menu then I get
//newsite.org/members/username/activity/ which gives a "This is somewhat embarrassing, isn’t it?" error.

The plugin reports to be compatible with buddypress - but this error would suggest that it is not as it is failing to recognize the need to feed these menus to the primary and not the secondary. (your only meant to have one buddypress)

Can you help?

  • Kimberly
    • Champion of Loops

    Chris,

    Hi! and Welcome to WPMUdev forums

    I'm not familiar with the integration of Buddypress and Domain Mapping so I'm going to flag the developer on this to see if he can offer some input here.

    The plugin should work with Buddypress, so I'm sure he will be able to offer some insight!

    Best,

    Kimberly

  • Kimberly
    • Champion of Loops

    Chris,

    I'm sorry about the lapse in communication on this, seems we are all on different time-zones and the weekend has put a huge block of time in between all of us!

    I'll email the dev directly with a link to this :slight_smile:

    Thanks for your patience, I'm awfully sorry for the delay

    Best,

    Kimberly

  • Barry
    • DEV MAN’s Mascot

    I map the site newname.org to the primary IP address and check the redirect sends me to the primary site

    Are you domain mapping the primary site?

    The plugin reports to be compatible with buddypress - but this error would suggest that it is not as it is failing to recognize the need to feed these menus to the primary and not the secondary. (your only meant to have one buddypress)

    You can have multiple buddypresses on your install now, which makes things a lot more fun, if you remove the domain mapping for that secondary site, what url do the menus go to then?

  • Chris Carrigan
    • Design Lord, Child of Thor

    Ok thanks - I've now got the problem fixed (mostly) here for people who find this thread in a search when they have had a similar problem is what you need to do.

    1) check that you have deleted the line define ('WP_ALLOW_MULTISITE',true) when you did your original multisite set up. Correcting this didn't solve the problem but I'm sure it was a contributory factor.

    2) Install the multiple domains plugging even if your not planning to use multiple domains.

    This did not correct the problem on the original site (which I've archived as corrupt) but it has solved it on all the sites created since.

    My recommendation to WPMUDEV is that the documentation of multi-domains and Domain Mapping be updated to recommend the installation of the plugins a pair on BuddyPress installations.

  • Kimberly
    • Champion of Loops

    Chris

    Thanks for your reply here!

    I will leave open to see if Barry has any comments on your fix.

    I am not sure it is a standard fix that should be applied for others who are having the same issue as circumstances for all installs are very different.

    We are currently working on a rewrite of the plugin documents and finding a way to accurately reflect the relationship between other plugins and Buddypress :slight_smile:

    Glad you got it sorted and Thanks!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.