# Cannot log in after log out Discourse (after have install wp-discourse)

**URL:** https://meta.discourse.org/t/cannot-log-in-after-log-out-discourse-after-have-install-wp-discourse/138817
**Category:** WordPress
**Created:** [16 januari 2020 om 13:46 UTC](https://meta.discourse.org/t/cannot-log-in-after-log-out-discourse-after-have-install-wp-discourse/138817 "2020-01-16T13:46:19Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Arthur\_Saint\_Martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arthur_saint_martin/32/143497_2.png) [@Arthur\_Saint\_Martin](https://meta.discourse.org/u/Arthur_Saint_Martin)
#### Post date: [16 januari 2020 om 13:46 UTC](https://meta.discourse.org/t/cannot-log-in-after-log-out-discourse-after-have-install-wp-discourse/138817/1 "2020-01-16T13:46:19Z")

</div>

Hello,

I installed the plugin “wp-discourse” in my WordPress. I connected WP with the speech successfully, although I didn’t test if it worked, it said it was related to my speech. After that, I tried to log out of the speech to see if the users were synchronized because I installed an SSO and two webhooks (one for users and one for topics).

But when I tried to reconnect, it did not work and also when I press the submit button “connect”, it redirects me directly to the WP. While “wp-discourse” tells me that I am no longer connected to Discourse.

Also, I am always in localhost on both (WP and Discourse).

WP: [http://localhost/wordpress](http://localhost/wordpress)  
Discourse: [http://localhost:3000](http://localhost:3000)

 ![pb discourse log in](https://global.discourse-cdn.com/meta/original/3X/9/1/9100e0b8382e83a6483f85377c0371646ef7221c.png)

But when I write: [http://localhost:3000/admin/users/list/active](http://localhost:3000/admin/users/list/active)

 ![pb discourse log in after url user](https://global.discourse-cdn.com/meta/original/3X/5/b/5bd4335ed67960a57c95c7f3cacbedd5da358e1f.png)

But I cannot continue my navigation as usual. I only got this page:

 ![pb discourse ERROR PAGE NOT EXISTING](https://global.discourse-cdn.com/meta/original/3X/7/0/707d7a2ae473bc8bfecda8c715dc01ff55f7e008.png)

Thank you in advance to those who will help me 🙂

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [16 januari 2020 om 14:15 UTC](https://meta.discourse.org/t/cannot-log-in-after-log-out-discourse-after-have-install-wp-discourse/138817/2 "2020-01-16T14:15:32Z")

</div>

Running discourse on a port in this way isn’t supported. Nor is the use of localhost. A valid DNS address is mandatory.

If you have enabled SSO then `yoursite.com/u/admin-login` is the fallback.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [16 januari 2020 om 18:40 UTC](https://meta.discourse.org/t/cannot-log-in-after-log-out-discourse-after-have-install-wp-discourse/138817/3 "2020-01-16T18:40:23Z")

</div>

> [@Arthur\_Saint\_Martin](#):
>
> Also, I am always in localhost on both (WP and Discourse).
> 
> WP: [http://localhost/wordpress](http://localhost/wordpress)  
> Discourse: [http://localhost:3000](http://localhost:3000)

Is this a development site that you are running on your local computer? That is the only case where you should be using `localhost` as the site’s domain.

---

<div class="post-metadata">

### Author: ![Arthur\_Saint\_Martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arthur_saint_martin/32/143497_2.png) [@Arthur\_Saint\_Martin](https://meta.discourse.org/u/Arthur_Saint_Martin)
#### Post date: [17 januari 2020 om 08:35 UTC](https://meta.discourse.org/t/cannot-log-in-after-log-out-discourse-after-have-install-wp-discourse/138817/4 "2020-01-17T08:35:48Z")

</div>

Yes I am running on my local computer

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [17 januari 2020 om 21:43 UTC](https://meta.discourse.org/t/cannot-log-in-after-log-out-discourse-after-have-install-wp-discourse/138817/5 "2020-01-17T21:43:49Z")

</div>

That’s great that you have this setup locally. It sounds like there is a configuration problem with your SSO setup. You can disable SSO on Discourse from the rails console. To get to the console, `cd` your `discourse` directory and run:

```ruby
rails c

```

When the console prompt appears, run:

```plaintext
SiteSetting.enable_sso = false

```

Once you have done that, you should be able to login to your Discourse site through its login form. Check your SSO settings on Discourse and WordPress. Then re-enable SSO.
