Wordpress import to Local removes Roles from users

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

  1. Export .sql file from phpMyAdmin
  2. Download wp-content from server
  3. then follow the guide: How to Import a WordPress Site into Local
  4. Importing here should be completed
  5. Login to /wp-admin → Permissions are missing!
  6. Open site shell
  7. Create new administrator user
wp user create bob bob@example.com --role=administrator --user_pass=123
  1. Login again on the /wp-admin with the new admin user
  2. 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)

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.