WordPress.org

Support

Support » Plugins and Hacks » [Resolved] WordPress MU Domain Mapping & Buddypress 1.6.4 automatic login

[Resolved] WordPress MU Domain Mapping & Buddypress 1.6.4 automatic login

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ron Rennick
    Participant

    @wpmuguru

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

    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?

    Plugin Author Ron Rennick
    Participant

    @wpmuguru

    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.

    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.

    Yes, it works!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] WordPress MU Domain Mapping & Buddypress 1.6.4 automatic login’ is closed to new replies.