# WP Discourse "Update Discourse topic" error

**URL:** <https://meta.discourse.org/t/wp-discourse-update-discourse-topic-error/88656>\
**Category:** WordPress\
**Created:** [29.Май.2018 13:24:18 UTC](https://meta.discourse.org/t/wp-discourse-update-discourse-topic-error/88656 "2018-05-29T13:24:18Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![icaria36](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/icaria36/32/426431_2.png) [@icaria36](https://meta.discourse.org/u/icaria36)\
**Post date:** [17.Сентябрь.2018 20:44:15 UTC](https://meta.discourse.org/t/wp-discourse-update-discourse-topic-error/88656/5 "2018-09-17T20:44:15Z")

</div>

We are finding this problem right now, and I think I can contribute to this discussion. What happened in our case is:

1. An article is published in WordPress and a related topic is automatically created in Discourse.
2. However, for whatever reason (user post limit?), the new topic goes automatically to moderation.
3. The moderated topic is not public, The WP-Discourse plugin cannot “see it” and throws a first error message: `Reason for failure: A bad response was returned from Discourse. Check that: - your Discourse forum is online.`

If the moderator approves the post because everything is correct there, then…

When updating the article in WordPress in order to have a Discourse topic linked, the WP-Discourse plugin finds an article with an identical title / content, and this is what cause a second error message:

```plaintext
Reason for failure:
A 422 response code was returned from Discourse.
Unprocessable Entity

```

The solution is to delete the first Discourse topic and update the page again.

---

_[View the full topic](https://meta.discourse.org/t/wp-discourse-update-discourse-topic-error/88656)._
