I have the plugin set up and a blog mapped, and it works perfectly for everything when you're not logged in. yay!
However, having major issues with the backend. Well, just 1 issue I guess: I can't get to it!
Regardless of the options checked on the Domain Mapping options screen, I can not access the backend of a mapped blog. I am instead displayed the login screen.
Example:
http://www.foo.com/bar is my blog installed as a subdirectory
http://www.bar.com is my other domain.
Behavior:
http://www.bar.com displays my foo.com/bar site perfectly.
bar.com/wp-admin redirects me to foo.com/bar/wp-login.php
Submitting my login info takes me to:
foo.com/bar/wp-login.php?redirect_to=http://foo.com/bar/wp-admin/profile.php
*however* at this point, at least part of WP thinks I'm actually logged in, because if I go back to bar.com, my "Site Admin" link shows up (which only does if you're logged in)
Clicking on that Site Admin link however, will take me to the login page.
Similarly, if I log in at just foo.com, go to Blogs, and try to visit the backend of foo.com/bar via the Backend link, it will take me to the login page at:
foo.com/bar/wp-login.php?redirect_to=http://foo.com/bar/wp-admin
Things to note:
I've checked at pretty much every stage of the process, and almost never see a record in wp_domain_mapping_logins. I can't even consistently reproduce it, but occasionally after doing a bunch of stuff I find one weird record: id=NULL, userid=0, blogid = bar's blogid. t: 1/1/0001 12:00:00 AM
I never get the message: "Incorrect or out of date login key"
I do NOT define DOMAIN_COOKIE in my wp-config
Relevant?
When I log in at foo.com/wp-admin, there are 5 cookies set when i get to the dashboard:
wordpress_
wordpress_logged_in_
wordpress_test_cookie
wp-settings-1
wp-settings-time-1
When I log in at foo.com/bar/wp-admin, there are 2 cookies set when i get bounced back to the login page
wordpress_logged_in
wordpress_test_cookie
Questions:
I did try a much earlier version of the plugin with the same name first, which didn't work. I deleted the domain_mapping table in order to get this one working. Could there be any global options stored in the DB that are conflicting with this version that I could look for and purge?
Any ideas how to fix this, or what I can do to get more debugging information?
Thanks! :D
http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/