MU-Migration icon indicating copy to clipboard operation
MU-Migration copied to clipboard

Users import from Multisite into a single Site

Open rootbash opened this issue 5 years ago • 3 comments

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.

rootbash avatar Mar 09 '20 18:03 rootbash

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

bijanmmarkes avatar May 22 '20 13:05 bijanmmarkes

+1 for this issue

nunomorgadinho avatar Jun 08 '21 04:06 nunomorgadinho

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';

reikjarloekl avatar Dec 04 '21 21:12 reikjarloekl