# Wordpress/Discourse connection problem

**URL:** https://meta.discourse.org/t/wordpress-discourse-connection-problem/139713
**Category:** WordPress
**Created:** [January 25, 2020, 1:46pm UTC](https://meta.discourse.org/t/wordpress-discourse-connection-problem/139713 "2020-01-25T13:46:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Brajmohan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brajmohan_kumar/32/138760_2.png) [@Brajmohan\_Kumar](https://meta.discourse.org/u/Brajmohan_Kumar)
#### Post date: [January 25, 2020, 1:46pm UTC](https://meta.discourse.org/t/wordpress-discourse-connection-problem/139713/1 "2020-01-25T13:46:57Z")

</div>

I installed the Discourse WordPress plugin, and even though I don’t enter any API key and URL, it is still showing at the top that **You are connected to Discourse!**

> **[Screenshot](https://prnt.sc/qspjr7)**
>
> Captured with Lightshot

Thank you!

---

<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: [January 25, 2020, 6:36pm UTC](https://meta.discourse.org/t/wordpress-discourse-connection-problem/139713/3 "2020-01-25T18:36:31Z")

</div>

Thanks for reporting that! If the Connection options fields have not been set, the “connected” message gets displayed. That is a bug. I’ll fix it today. For now, you can ignore that message until you have filled in the fields on the Connection options page. Once you have filled in those fields, the connection message that gets displayed will be accurate.

The problem was caused when I added a condition that bypasses the connection status check if no API credentials have been entered. That condition returns a `WP_Error` object. The function that displays the status notice needs to be updated to check if a `WP_Error` object has been returned.

---

<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: [January 25, 2020, 8:33pm UTC](https://meta.discourse.org/t/wordpress-discourse-connection-problem/139713/4 "2020-01-25T20:33:26Z")

</div>

The issue with the connection status notice has been fixed in [WP Discourse](https://github.com/discourse/wp-discourse) version `1.9.9`. That version is in the WordPress repo now. Thanks again for reporting this!

---

<div class="post-metadata">

### Author: ![Brajmohan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brajmohan_kumar/32/138760_2.png) [@Brajmohan\_Kumar](https://meta.discourse.org/u/Brajmohan_Kumar)
#### Post date: [January 26, 2020, 2:53am UTC](https://meta.discourse.org/t/wordpress-discourse-connection-problem/139713/5 "2020-01-26T02:53:13Z")

</div>

> [@simon](#):
>
> The issue with the connection status notice has been fixed in [WP Discourse](https://github.com/discourse/wp-discourse) version `1.9.9` . That version is in the WordPress repo now. Thanks again for reporting this!

Thank you so much for the quick fix!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [February 25, 2020, 3:01am UTC](https://meta.discourse.org/t/wordpress-discourse-connection-problem/139713/6 "2020-02-25T03:01:37Z")

</div>

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