WordPress.org

Ready to get started?Download WordPress

Forums

WordPress MU Domain Mapping
[resolved] WordPress MU Domain Mapping & Buddypress 1.6.4 automatic login (6 posts)

  1. finzend
    Member
    Posted 1 year ago #

    Hi there,

    We have been using the Domain mapping plugin with great pleasure. Last week I've updated Buddypress from 1.2.9 to 1.6.4. All seemed to work fine, except for the login across multiple sites.

    When you login on one webiste, you're also automatically logged in on antoher site (the DM plugin uses a javascript in the header I think). But this feature was broken when switching to the new version of Buddypress.

    Does anybody have any experience with this, or any ideas how to fix it?

    Thanks in advance!

    http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

  2. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 1 year ago #

    Check to see if you have a javascript error on your site.

  3. finzend
    Member
    Posted 1 year ago #

    Hi Ron,

    Thanks for your reply. You're right, there is a JS error in the domaning-mapping-script. The DM-script in the header used to give back a string of code to redirect the user so you're automatically logged in. But now the script just shows the frontpage.

    So this line of code includes the frontpage of the Networksite:
    <script src="http://network.mysite.com/?dm=5b780f2ae1467424c6897ac5d8366f55&action=load&blogid=4&siteid=1&t=29832732&back=http%3A%2F%2Fwww.mysite4.com%2F" type="text/javascript"></script>

    The url returns no javascript anymore, any idea why this happens because of the buddypress update?

  4. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 1 year ago #

    The url returns no javascript

    That's correct. However, that's not a javascript error as the browser does not generate an error when a javascript file is empty.

    I meant check the javascript console in your browser for an error.

  5. finzend
    Member
    Posted 1 year ago #

    Hi Ron,

    Thanks, but the javascript dm-link isnt empty, it returns the html for the buddypress frontpage.

    The console didnt display any errors, except for the line I posted..

    I dived into the Domain mapper plugin and it seemd that the remote_login_js hook was overwritten somehow. I've adjusted this line:
    add_action( 'template_redirect', 'remote_login_js' );
    to:
    add_action( 'template_redirect', 'remote_login_js', 1 );

    That seems to work, I will be trying it on our live server the coming hours.

  6. finzend
    Member
    Posted 1 year ago #

    Yes, it works!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic