# Rails error when using DiscourseConnect and Wordpress

**URL:** https://meta.discourse.org/t/rails-error-when-using-discourseconnect-and-wordpress/237133
**Category:** Support
**Created:** [August 24, 2022, 9:17pm UTC](https://meta.discourse.org/t/rails-error-when-using-discourseconnect-and-wordpress/237133 "2022-08-24T21:17:01Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [August 29, 2022, 9:19am UTC](https://meta.discourse.org/t/rails-error-when-using-discourseconnect-and-wordpress/237133/5 "2022-08-29T09:19:27Z")

</div>

Your issue is most likely a misconfiguration of [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true). Please start from the beginning again and make sure you follow this guide closely. The details you’ve given a bit vague to give you more specific advice than that at this stage.

> [@Configure single sign-on (SSO) with WP Discourse and DiscourseConnect](https://meta.discourse.org/t/wp-discourse-and-discourseconnect/223494):
>
> The [WP Discourse](https://github.com/discourse/wp-discourse) plugin lets you set up [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) in Wordpress so your users can use their Wordpress account to log into Discourse, or their Discourse account to log into Wordpress. Before you can set up [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) you first have to install the [WP Discourse](https://github.com/discourse/wp-discourse) plugin on Wordpress and Connect it to your Discourse. If you’re ready to get started, start by watching this short video, or follow the instructions below. Next Step Once you’ve set up [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true), you may want to check o…

If you’re still having issues after following that guide closely please ask a question in that topic.

> [@Shubh\_Bhalla](#):
>
> Also it is super weird that this only happens when i clear cookies from discourse.mydomain . But this problem fixes itself when i try to login through [https://discourse.mydomain/u/admin-login](https://discourse.mydomain/u/admin-login) but comes again if we clear cookies for discourse

This is happening because by clearing your cookies you are effectively logging yourself out.

---

_[View the full topic](https://meta.discourse.org/t/rails-error-when-using-discourseconnect-and-wordpress/237133)._
