# Cannot connect Discourse to WordPress

**URL:** <https://meta.discourse.org/t/cannot-connect-discourse-to-wordpress/229073>\
**Category:** WordPress\
**Created:** [June 5, 2022, 5:35pm UTC](https://meta.discourse.org/t/cannot-connect-discourse-to-wordpress/229073 "2022-06-05T17:35:45Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![CMASFO](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cmasfo/32/262678_2.png) [@CMASFO](https://meta.discourse.org/u/CMASFO)\
**Post date:** [June 5, 2022, 5:35pm UTC](https://meta.discourse.org/t/cannot-connect-discourse-to-wordpress/229073/1 "2022-06-05T17:35:45Z")

</div>

I made api key, typed url, api, username, and this is what I get from the [WP Discourse](https://github.com/discourse/wp-discourse) plugin.

**You are not connected to Discourse. Check that your connection settings are correct. If the issue persists, enable connection logs and check Logs.**

And this is the log that I get.

[2022-06-05 17:20:38] connection.INFO: check\_connection\_status.failed\_to\_connect {“error”:“wpdc\_response\_error”,“message”:“An invalid response was returned from Discourse”,“http\_code”:“”,“http\_body”:“”}

And sometimes this log.

[2022-06-05 16:14:55] connection.INFO: check\_connection\_status.failed\_to\_connect {“error”:“wpdc\_response\_error”,“message”:“An invalid response was returned from Discourse”,“http\_code”:404,“http\_body”:“\r\n404 Not Found\r\n\r\n\<h1\>404 Not Found\r\n\<hr\>\<center\>nginx\r\n\r\n\r\n”}

I also check curl and this is what I get.

curl: (60) SSL: no alternative certificate subject name matches target host name ‘[cmasfo.com](http://cmasfo.com)’  
More details here: [curl - SSL CA Certificates](https://curl.se/docs/sslcerts.html)

curl failed to verify the legitimacy of the server and therefore could not  
establish a secure connection to it. To learn more about this situation and  
how to fix it, please visit the web page mentioned above.

What should I do in this situation?

---

_[View the full topic](https://meta.discourse.org/t/cannot-connect-discourse-to-wordpress/229073)._
