Issue Summary
When the import process is completed, all the WP users are losing their Roles. None of the pre-existing users having access to /wp-admin/.
Troubleshooting Questions
-
Does this happen for all sites in Local, or just one in particular?
It happens on all websites, more specifically only on websites which their .sql file is not exported from Adminer. -
Are you able to create a new, plain WordPress site in Local and access it in a Browser?
yes
Replication
- Export .sql file from phpMyAdmin
- Download wp-content from server
- then follow the guide: How to Import a WordPress Site into Local
- Importing here should be completed
- Login to /wp-admin → Permissions are missing!
- Open site shell
- Create new administrator user
wp user create bob bob@example.com --role=administrator --user_pass=123
- Login again on the /wp-admin with the new admin user
- Go to the User List page and all the preassigned user Roles are gone
System Details
-
Which version of Local is being used?
Latest 6.4.1 -
What Operating System (OS) and OS version is being used?
- Win11
-
Attach the Local Log. See this Help Doc for instructions on how to do so:
local-logs.zip (6.1 KB)