Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users import from Multisite into a single Site #79

Open
rootbash opened this issue Mar 9, 2020 · 3 comments
Open

Users import from Multisite into a single Site #79

rootbash opened this issue Mar 9, 2020 · 3 comments
Assignees
Labels

Comments

@rootbash
Copy link

rootbash commented Mar 9, 2020

Hi,

I have noticed if I try to import from a subsite within a multi-site network into a single site the users that are setup network wide are messed up. They do not get any roles and they are unable to login using the login credentials they have at the source. So I have to update the user role.

@bijanmmarkes
Copy link

👍 I also noticed the same issue, imports the role names, and keeps them attached to the users, but the roles themselves don't exist.

@nunomorgadinho
Copy link

+1 for this issue

@reikjarloekl
Copy link

I also encountered this issue and fixed it by running these SQL statements on my wordpress DB after the import. Note that this will NOT merge roles you defined on the site level, but removes them completely leaving you with the roles you had defined on the site level. 3 is the blog id I exported from the multi site. You need to adjust this for your blog id.

delete from wp_options where `option_name` = 'wp_user_roles';
UPDATE `wp_options` SET `option_name` = 'wp_user_roles' WHERE `option_name` = 'wp_3_user_roles';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants