# Everything is fine but you are not connected to Discourse

**URL:** https://meta.discourse.org/t/everything-is-fine-but-you-are-not-connected-to-discourse/114976
**Category:** WordPress
**Created:** [14 april 2019 om 03:38 UTC](https://meta.discourse.org/t/everything-is-fine-but-you-are-not-connected-to-discourse/114976 "2019-04-14T03:38:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![3cz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/3cz/32/138334_2.png) [@3cz](https://meta.discourse.org/u/3cz)
#### Post date: [14 april 2019 om 03:38 UTC](https://meta.discourse.org/t/everything-is-fine-but-you-are-not-connected-to-discourse/114976/1 "2019-04-14T03:38:59Z")

</div>

I got this information after my configuration completed.

> “You are not connected to Discourse. If you are setting up the plugin, this notice should go away after completing the form on this page.”

I checked everything and didn’t find the solution, I can accessed the rest url via Curl command in the host server, both Wordpress and Discourse.

Any configuration is normal in my Wordpress except I changed the plugin path via wp-config.php like this:

> if ( !defined(‘ABSPATH’) )  
> define(‘ABSPATH’, dirname( **FILE** ) . ‘/’);  
> define (‘WP\_CONTENT\_FOLDERNAME’, ‘func’);

> define (‘WP\_CONTENT\_DIR’, ABSPATH . WP\_CONTENT\_FOLDERNAME);

> define(‘WP\_SITEURL’, ‘https://’ . $\_SERVER[‘HTTP\_HOST’] . ‘/’);  
> define(‘WP\_CONTENT\_URL’, WP\_SITEURL . WP\_CONTENT\_FOLDERNAME);

I am not sure if this configuration caused the issue.

---

<div class="post-metadata">

### Author: ![3cz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/3cz/32/138334_2.png) [@3cz](https://meta.discourse.org/u/3cz)
#### Post date: [14 april 2019 om 05:51 UTC](https://meta.discourse.org/t/everything-is-fine-but-you-are-not-connected-to-discourse/114976/2 "2019-04-14T05:51:38Z")

</div>

I get this error for a testing which I post this link: [https://www.Mysite.com/api/wp-discourse/v1/update-topic-content](https://www.Mysite.com/api/wp-discourse/v1/update-topic-content)

And as you see, I rewrite the path from “wp-json” to “api”.

```json
{
    "code": "rest_no_route",
    "message": "未找到匹配URL和请求方式的路由",
    "data": {
        "status": 404
    }
}

```

---

<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: [14 april 2019 om 06:47 UTC](https://meta.discourse.org/t/everything-is-fine-but-you-are-not-connected-to-discourse/114976/3 "2019-04-14T06:47:57Z")

</div>

> [@3cz](#):
>
> I get this error for a testing which I post this link: `https://www.Mysite.com/api/wp-discourse/v1/update-topic-conten`t

That route requires an authenticated POST request. It is meant to be used by Discourse webhooks. It looks like you are getting the correct response.

> [@3cz](#):
>
> “You are not connected to Discourse. If you are setting up the plugin, this notice should go away after completing the form on this page.”

This happens when a `200` response is not returned from a request made to Discourse with the Publishing Username and API Key that you have set. Are you using the All Users API key from Discourse?

---

<div class="post-metadata">

### Author: ![3cz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/3cz/32/138334_2.png) [@3cz](https://meta.discourse.org/u/3cz)
#### Post date: [14 april 2019 om 14:11 UTC](https://meta.discourse.org/t/everything-is-fine-but-you-are-not-connected-to-discourse/114976/4 "2019-04-14T14:11:04Z")

</div>

Hi Simon,

I got an mail notification and find this “cURL error 60: SSL certificate problem: unable to get local issuer certificate”

so I changed my ssl configuration from DigiCert Global Root CA to let’s Encrpyt, now the connecting is fine.

Thx.🤓

---

<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: [14 mei 2019 om 14:24 UTC](https://meta.discourse.org/t/everything-is-fine-but-you-are-not-connected-to-discourse/114976/5 "2019-05-14T14:24:24Z")

</div>

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