# Was working perfectly, now cannot create new topic

**URL:** <https://meta.discourse.org/t/was-working-perfectly-now-cannot-create-new-topic/159411>\
**Category:** WordPress\
**Created:** [31 juli 2020 om 12:50 UTC](https://meta.discourse.org/t/was-working-perfectly-now-cannot-create-new-topic/159411 "2020-07-31T12:50:47Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![invisnet](https://avatars.discourse-cdn.com/v4/letter/i/a5b964/32.png) [@invisnet](https://meta.discourse.org/u/invisnet)\
**Post date:** [9 augustus 2020 om 00:47 UTC](https://meta.discourse.org/t/was-working-perfectly-now-cannot-create-new-topic/159411/8 "2020-08-09T00:47:11Z")

</div>

> [@simon](#):
>
> I’m surprised that the Query Monitor plugin isn’t showing an error.

So am I, but it really isn’t showing anything at all. If it were it would be a 400 error (as that’s what’s reported in `production.log`), but it’s not.

Update: having grovelled through the code I can see there won’t be an error - it’s all caught; if you enable email reports (email but no `error_log()`?) it tells you:

```plaintext
Reason for failure:
A 400 response code was returned from Discourse.
Bad Request

```

but that’s it.

> [@simon](#):
>
> It might be worth generating a new API key from your Discourse Admin / API page. Make sure the key is a Global Key (allows all actions.)

Already done that, no difference. It was a last resort - the “last used” timestamp got updated on the previous key when I tried to publish so I knew that hadn’t changed somehow, but I thought it was worth a go.

> [@simon](#):
>
> One final thing to check is to see what values are getting set for the post custom fields when you attempt to publish a post from WordPress to Discourse

publish\_post\_category: 23  
update\_discourse\_topic: 0  
wpdc\_publishing\_error: Bad Request  
wpdc\_unlisted\_topic: 1

That’s it. Oh, and before you ask, it does the same if I don’t set “Publish as Unlisted” but with the expected difference in post meta.

---

_[View the full topic](https://meta.discourse.org/t/was-working-perfectly-now-cannot-create-new-topic/159411)._
