WordPress.org

Ready to get started?Download WordPress

Forums

User Switching
[resolved] Switching To - Switching to myself (3 posts)

  1. Scott Kingsley Clark
    Member
    Posted 3 years ago #

    Very weird issue on one of my client sites running WPMS 3.0.1 - it was previously WPMU.

    Clicking 'Switch to' on any of the users (in user manager or profile editor) it 'switches' but it says it's switched to my user acct from my acct.

    Anyways, it looks like it boiled down to COOKIEHASH being empty. I checked why it was empty and it was my wp_sitemeta table not containing a record for siteurl - which is very weird. Why is it very weird? Because new installs have this option. It *may* be something to do with the upgrade process itself in WP from WPMU or something entirely different.

    Figured I'd leave this post here for anyone to read if it helps them.

    To fix this issue:

    1. Add siteurl value to your wp_sitemeta table (set one up for each of the sites based on site_id)
    2. Clear your cookies for the site
    3. Login again as your admin
    4. Go to users menu pages and switch to user as normal
    5. Works!

    http://wordpress.org/extend/plugins/user-switching/

  2. John Blackbourn
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Scott,

    I've not had a chance to test the plugin on a Multisite install yet, but any install should have a 'siteurl' option in the database. Not sure why your install wouldn't or whether this was related to upgrading from WPMU. I'll bear it in mind when I get around to testing it on a Multisite install.

    John

  3. Scott Kingsley Clark
    Member
    Posted 3 years ago #

    Sounds good, yeah it's very curious indeed!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic