# WP Local Site Import removes user privileges

**URL:** <https://community.localwp.com/t/wp-local-site-import-removes-user-privileges/39666>\
**Category:** Support\
**Created:** [October 23, 2023, 1:24am UTC](https://community.localwp.com/t/wp-local-site-import-removes-user-privileges/39666 "2023-10-23T01:24:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjw9999](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/sjw9999/32/19905_2.png) [@sjw9999](https://community.localwp.com/u/sjw9999)\
**Post date:** [October 23, 2023, 1:24am UTC](https://community.localwp.com/t/wp-local-site-import-removes-user-privileges/39666/1 "2023-10-23T01:24:43Z")

</div>

### What issue or error are you experiencing?

Import an existing site into wp-local and lose admin access - cant access dashboard.  
Clearly an ongoing issue as have found:

1. [List item](https://community.localwp.com/t/wordpress-import-to-local-removes-roles-from-users/32258)
2. [List item](https://community.localwp.com/t/no-admin-access-after-import-live-site/31094)

* * *

### What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

## Import a file using zip as described in docs: [Import/Export a WordPress Site - Local](https://localwp.com/help-docs/getting-started/how-to-import-a-wordpress-site-into-local/#import-a-site)

### System Details

- **Local Version:** 7.2.1+6433

- **Operating System (OS) and OS version:** Windows 10 Pro

* * *

### Local Logs

Attach your Local Logs here ([Help Doc - Retrieving Local’s Log](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/))

[Local.zip](https://community.localwp.com/uploads/short-url/tOuOcWuPd0GS1N3ORWU0BhKCxKL.zip) (113.4 KB)

* * *

_ **Security Reminder** _  
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [October 26, 2023, 5:14pm UTC](https://community.localwp.com/t/wp-local-site-import-removes-user-privileges/39666/2 "2023-10-26T17:14:38Z")

</div>

Hi @sjw9999

You can try creating a new admin user or editing a current users credentials via CLI. Instructions on the link below:

> **[Reset a WordPress admin password](https://localwp.com/help-docs/troubleshooting/reset-a-local-sites-wordpress-admin-password/)**
>
> If you don't have an admin login or you simply forgot your admin password, this doc will go over how you can gain access to the WordPress admin for a Local site on your computer using WP-CLI.

---

<div class="post-metadata">

**Author:** ![sjw9999](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/sjw9999/32/19905_2.png) [@sjw9999](https://community.localwp.com/u/sjw9999)\
**Post date:** [October 26, 2023, 8:41pm UTC](https://community.localwp.com/t/wp-local-site-import-removes-user-privileges/39666/3 "2023-10-26T20:41:08Z")

</div>

I did that. It doesnt fix the problem though, it’s just a workaround.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [October 26, 2023, 8:54pm UTC](https://community.localwp.com/t/wp-local-site-import-removes-user-privileges/39666/4 "2023-10-26T20:54:03Z")

</div>

Does it happen when you import any site? Or just a specific site? If it’s happening with multiple sites is there a commonality in a plugin for example that could be contributing to the issue? Like a security, user management, or similar type plugin?

Often when this happens it’s due to a setting or some other type of plugin, theme, or database conflict outside of Local’s control.

For example, if you create a new, blank site in Local can you access that okay?

Glad the work around is getting you in for now!

---

<div class="post-metadata">

**Author:** ![sjw9999](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/sjw9999/32/19905_2.png) [@sjw9999](https://community.localwp.com/u/sjw9999)\
**Post date:** [October 27, 2023, 3:15am UTC](https://community.localwp.com/t/wp-local-site-import-removes-user-privileges/39666/5 "2023-10-27T03:15:55Z")

</div>

It happened the first time I used the import but I thought it was just an anomaly or that I did something wrong. When it happened a second time, I thought - this is not a coincidence any more. That’s two from two imports. I have previously just used blank site for new ones or Duplicator for existing to copy sites in but I thought I would try your import feature and the 2 sites I’ve done have both had this issue.

The plugin list in the most recent site is very limited - only: Classic Editor, Contact Form 7, Easy Twitter Feed Widget, Soliloquy Slider, Wordfence.

Creating a blank site is no problem.

The site I just imported is an old, barely used site so I am happy to give you the import file for testing: [https://www.dropbox.com/t/4K5ooyeRIJnh5aMD](https://www.dropbox.com/t/4K5ooyeRIJnh5aMD)

Maybe you can see what the issue is…

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [October 27, 2023, 1:01pm UTC](https://community.localwp.com/t/wp-local-site-import-removes-user-privileges/39666/6 "2023-10-27T13:01:07Z")

</div>

Wordfence could potentially be the issue on there. You also mentioned that it’s an older site. How old are we talking? Compatibility issues could also be a factor if it was last live on older versions of WP/PHP/plugins/themes and so on.

We do see this issue from time to time, as you noted in your original post, but not widespread, and again it’s generally down to some site-level conflict Local can’t account for which is why we provide that help doc with a workaround to get users in. In testing other sites I’m able to import and pull without any issue on the latest versions of Local.

---

<div class="post-metadata">

**Author:** ![sjw9999](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/sjw9999/32/19905_2.png) [@sjw9999](https://community.localwp.com/u/sjw9999)\
**Post date:** [October 29, 2023, 11:53pm UTC](https://community.localwp.com/t/wp-local-site-import-removes-user-privileges/39666/7 "2023-10-29T23:53:01Z")

</div>

Deleted wordfence before importing - issue persists

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [October 31, 2023, 2:58pm UTC](https://community.localwp.com/t/wp-local-site-import-removes-user-privileges/39666/8 "2023-10-31T14:58:49Z")

</div>

Hi @sjw9999

How did you delete Wordfence? Sometimes if you don’t go through their uninstall steps they will still leave files, folders or DB tables behind. In either case, as I mentioned above it could be other culprits on the site as well.

Where are these sites coming from? Are they live and hosted somewhere currently?

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [January 29, 2024, 2:59pm UTC](https://community.localwp.com/t/wp-local-site-import-removes-user-privileges/39666/9 "2024-01-29T14:59:23Z")

</div>

Closed on January 29, 2024, 2:59pm UTC

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