# I cannot login to wordpress admin or wordpress sub-pages

**URL:** <https://community.localwp.com/t/i-cannot-login-to-wordpress-admin-or-wordpress-sub-pages/38669>\
**Category:** WordPress Questions\
**Tags:** wordpress-login\
**Created:** [August 17, 2023, 9:33pm UTC](https://community.localwp.com/t/i-cannot-login-to-wordpress-admin-or-wordpress-sub-pages/38669 "2023-08-17T21:33:38Z")\
**Posts on this page:** 17\
**Page:** 2

<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:** [August 19, 2023, 8:21pm UTC](https://community.localwp.com/t/i-cannot-login-to-wordpress-admin-or-wordpress-sub-pages/38669/21 "2023-08-19T20:21:15Z")

</div>

Are there any security plugins or user/role manager ones? If you open site shell you should be able to run `wp plugin list` to see everything. As a test, you could also run `wp plugin deactivate --all` and then see if you’re able to login with all of the plugins deleted. That will show whether or not a plugin has been blocking progress here.

---

<div class="post-metadata">

**Author:** ![mrdurham](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@mrdurham](https://community.localwp.com/u/mrdurham)\
**Post date:** [August 19, 2023, 8:24pm UTC](https://community.localwp.com/t/i-cannot-login-to-wordpress-admin-or-wordpress-sub-pages/38669/22 "2023-08-19T20:24:06Z")

</div>

I have one that manages user roles

---

<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:** [August 19, 2023, 8:36pm UTC](https://community.localwp.com/t/i-cannot-login-to-wordpress-admin-or-wordpress-sub-pages/38669/23 "2023-08-19T20:36:57Z")

</div>

Can you try deactivating that plugin via CLI to see if you can get in after? If not you could try using the --all command to nuke all of the plugins and try to get in again and see if it’s something else.

---

<div class="post-metadata">

**Author:** ![mrdurham](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@mrdurham](https://community.localwp.com/u/mrdurham)\
**Post date:** [August 19, 2023, 8:40pm UTC](https://community.localwp.com/t/i-cannot-login-to-wordpress-admin-or-wordpress-sub-pages/38669/24 "2023-08-19T20:40:19Z")

</div>

how do I deactivate a plugin using CLI?

---

<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:** [August 19, 2023, 8:46pm UTC](https://community.localwp.com/t/i-cannot-login-to-wordpress-admin-or-wordpress-sub-pages/38669/25 "2023-08-19T20:46:03Z")

</div>

`wp plugin deactivate pluginname` should do the trick!

And then if you need to do them all at once you can do `wp plugin deactivate --all`

To turn any back on it would be the same commands but with `activate` instead.

> **[wp plugin deactivate | WP-CLI Command | WordPress Developer Resources](https://developer.wordpress.org/cli/commands/plugin/deactivate/)**
>
> OPTIONS \[...\] One or more plugins to deactivate. \[--uninstall\] Uninstall the plugin after deactivation. \[--all\] If…

---

<div class="post-metadata">

**Author:** ![mrdurham](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@mrdurham](https://community.localwp.com/u/mrdurham)\
**Post date:** [August 19, 2023, 8:47pm UTC](https://community.localwp.com/t/i-cannot-login-to-wordpress-admin-or-wordpress-sub-pages/38669/26 "2023-08-19T20:47:11Z")

</div>

Ok, thanks.

---

<div class="post-metadata">

**Author:** ![mrdurham](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@mrdurham](https://community.localwp.com/u/mrdurham)\
**Post date:** [August 19, 2023, 8:50pm UTC](https://community.localwp.com/t/i-cannot-login-to-wordpress-admin-or-wordpress-sub-pages/38669/27 "2023-08-19T20:50:28Z")

</div>

I deactivated all of the plugins and I still cannot login.

---

<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:** [August 19, 2023, 9:00pm UTC](https://community.localwp.com/t/i-cannot-login-to-wordpress-admin-or-wordpress-sub-pages/38669/28 "2023-08-19T21:00:11Z")

</div>

This was a site you built in Local correct? But at no point you could log in without One Click Admin? Even when you first started working on it?

I’m not quite sure what isn’t syncing here without the site in front of me. We know now that you can create new sites and log in to those okay, so it seems like something specific to this site is hindering itself.

I’m going to send you a DM to follow up on some more details.

---

<div class="post-metadata">

**Author:** ![mrdurham](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@mrdurham](https://community.localwp.com/u/mrdurham)\
**Post date:** [August 19, 2023, 9:14pm UTC](https://community.localwp.com/t/i-cannot-login-to-wordpress-admin-or-wordpress-sub-pages/38669/29 "2023-08-19T21:14:56Z")

</div>

Yes, this is a site I built in Local. I cannot log into it at all except with the One Click Admin. It has been like this since I first built the site about 2 months ago.

---

<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:** [August 22, 2023, 3:32pm UTC](https://community.localwp.com/t/i-cannot-login-to-wordpress-admin-or-wordpress-sub-pages/38669/31 "2023-08-22T15:32:34Z")

</div>

I deleted your comment to keep your link private. Did you get my previous direct message? Feel free to respond to that after granting access to the Drive link.

---

<div class="post-metadata">

**Author:** ![mrdurham](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@mrdurham](https://community.localwp.com/u/mrdurham)\
**Post date:** [August 22, 2023, 4:42pm UTC](https://community.localwp.com/t/i-cannot-login-to-wordpress-admin-or-wordpress-sub-pages/38669/32 "2023-08-22T16:42:44Z")

</div>

If you are talking about the previous private message asking for the link, yes I got it. I will send you the link again through my email. Please let me know if you get the link.

---

<div class="post-metadata">

**Author:** ![mrdurham](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@mrdurham](https://community.localwp.com/u/mrdurham)\
**Post date:** [August 22, 2023, 4:53pm UTC](https://community.localwp.com/t/i-cannot-login-to-wordpress-admin-or-wordpress-sub-pages/38669/34 "2023-08-22T16:53:23Z")

</div>

I should have asked this earlier, but if I send you the link through my email, will that be the same as sending the link privately?

---

<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:** [August 23, 2023, 3:15pm UTC](https://community.localwp.com/t/i-cannot-login-to-wordpress-admin-or-wordpress-sub-pages/38669/36 "2023-08-23T15:15:30Z")

</div>

Hello @mrdurham!

Thank you for the extra details and help getting your site over in our messaging. I’m responding back here in the public thread since we may have found a fix for this.

It looks like your `Salts` are below the `Stop Editing` line in `wp-config.php` which we saw cause similar issues a couple of releases ago. We fixed this in the latest release but if you started building this site earlier then the fix wouldn’t retroactively update this so it will have to be done manually.

If you open your wp-config.php file in a text editor and move your salts above the line that says `That's all, stop editing!` save the changes and restart your site that should resolve the issue.

Here is what your wp-config looks like for example:

 ![Screenshot 2023-08-23 at 10.11.33 AM](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/7/1/7156dec1c0022f6f437d618123584aa1dc58590a.png)

Here is what mine looks like on a new sample site:

 ![Screenshot 2023-08-23 at 10.12.34 AM](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/a/f/af726d0438dcddce822beddf4cba319eccb168a1.png)

To reiterate the fix will just be to move those salts up, save, restart the site (Stop/Start) and then you should be good!

---

<div class="post-metadata">

**Author:** ![mrdurham](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@mrdurham](https://community.localwp.com/u/mrdurham)\
**Post date:** [August 23, 2023, 4:55pm UTC](https://community.localwp.com/t/i-cannot-login-to-wordpress-admin-or-wordpress-sub-pages/38669/37 "2023-08-23T16:55:49Z")

</div>

> [@Nick-B](#):
>
> wp-config.php

I made the changes to wp-config.php and I am now able to log into both the admin and the other subsites! Thank you so much for your help and patience.

---

<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:** [August 24, 2023, 1:45pm UTC](https://community.localwp.com/t/i-cannot-login-to-wordpress-admin-or-wordpress-sub-pages/38669/38 "2023-08-24T13:45:51Z")

</div>

Glad to hear it @mrdurham! Thank you for your patience and communication with us as well. Glad we got it sorted. Happy Developing 💚

---

<div class="post-metadata">

**Author:** ![mrdurham](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@mrdurham](https://community.localwp.com/u/mrdurham)\
**Post date:** [August 24, 2023, 4:45pm UTC](https://community.localwp.com/t/i-cannot-login-to-wordpress-admin-or-wordpress-sub-pages/38669/39 "2023-08-24T16:45:07Z")

</div>

Great, thank you so much!

---

<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:** [August 26, 2023, 4:45am UTC](https://community.localwp.com/t/i-cannot-login-to-wordpress-admin-or-wordpress-sub-pages/38669/40 "2023-08-26T04:45:50Z")

</div>

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

[Previous page](https://community.localwp.com/t/i-cannot-login-to-wordpress-admin-or-wordpress-sub-pages/38669.md?page=1)
