# Category request errors

**URL:** https://meta.discourse.org/t/category-request-errors/383607
**Category:** WordPress
**Created:** [September 22, 2025, 11:15pm UTC](https://meta.discourse.org/t/category-request-errors/383607 "2025-09-22T23:15:40Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![cogdog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cogdog/32/116536_2.png) [@cogdog](https://meta.discourse.org/u/cogdog)
#### Post date: [September 22, 2025, 11:15pm UTC](https://meta.discourse.org/t/category-request-errors/383607/1 "2025-09-22T23:15:40Z")

</div>

My WordPress site with latest version of [WP Discourse](https://github.com/discourse/wp-discourse) is returning on every post under the discourse tab:

> There was an error returning the category list from Discourse.

The logs are full of errors

```plaintext
[2025-09-22 00:10:14] comment.ERROR: sync_comments.get_discourse_category {"message":"The categories key was not found in the response from Discourse."} 

```

Just for the heck of it, I created a new API key.

I have checked all settings 3 times

 ![Screenshot 7](https://global.discourse-cdn.com/meta/original/4X/a/e/a/aea9cc41ee6d9606f4ce1ac6ff75b7902231b97b.jpeg)

I have a second WordPress site where it is able to get categories from the same discourse server with no problem.

What am I missing?

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [September 23, 2025, 3:16am UTC](https://meta.discourse.org/t/category-request-errors/383607/2 "2025-09-23T03:16:20Z")

</div>

maybe see this post (and topic)

> [@Issues with category selection in WP-Discourse](https://meta.discourse.org/t/issues-with-category-selection-in-wp-discourse/43392/8):
>
> The “There was an error returning the category list from Discourse” error message in your screenshot indicates that there is a problem with the plugin’s configuration. If you go to the WP Discourse Connection settings tab, are you seeing a notice saying that “You are connected to Discourse”? For the API Key field on that page, have you entered an All Users API Key? If not, could you try changing the API Key to an All Users API Key? On Discourse the key should be generated like this: F…

---

<div class="post-metadata">

### Author: ![cogdog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cogdog/32/116536_2.png) [@cogdog](https://meta.discourse.org/u/cogdog)
#### Post date: [September 23, 2025, 3:51pm UTC](https://meta.discourse.org/t/category-request-errors/383607/3 "2025-09-23T15:51:37Z")

</div>

I thought that was the problem as for some reason I had done the one user, but still no difference.

Now I found what is more likely the answer, for some reason our server admin is still running a PHP version 7.4, I need to have them bump it.

---

<div class="post-metadata">

### Author: ![cogdog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cogdog/32/116536_2.png) [@cogdog](https://meta.discourse.org/u/cogdog)
#### Post date: [October 1, 2025, 12:12am UTC](https://meta.discourse.org/t/category-request-errors/383607/4 "2025-10-01T00:12:08Z")

</div>

Nope, PHP version not the issue. Running now PHP 8.3 and I still see on all posts the discourse category error.

 ![Screenshot 70](https://global.discourse-cdn.com/meta/original/4X/8/6/e/86e7b22de375aca31f577793c178402a9f735711.jpeg)

The log is full of errors:

```plaintext
[2025-09-30 00:15:49] comment.ERROR: sync_comments.get_discourse_category {"message":"The categories key was not found in the response from Discourse."} 

```

I have remade the API key several times, its granted to an admin user account. The instructions under API key do not match my discourse API options. If I set the option to “All Users” there is no option to set the User, I only see that if I use the option for “Single User”

 ![Screenshot 77](https://global.discourse-cdn.com/meta/original/4X/4/1/0/41075a74e717373801c4e824cf376f459473959b.jpeg)

This previously worked fine, but I have been unable for weeks to get the plugin to work. What am I missing?

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [October 2, 2025, 8:16am UTC](https://meta.discourse.org/t/category-request-errors/383607/5 "2025-10-02T08:16:02Z")

</div>

> [@cogdog](#):
>
> This previously worked fine, but I have been unable for weeks to get the plugin to work.

Let’s think about what changed. The plugin hasn’t changed in the past few weeks, so what may have changed to cause this:

1. Did you make any changes to Wordpress? New plugins, new hosting service, enabled cloudflare etc?
2. Did you make any changes to Discourse? Same as above.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [October 14, 2025, 8:37pm UTC](https://meta.discourse.org/t/category-request-errors/383607/6 "2025-10-14T20:37:22Z")

</div>

@cogdog were you able to resolve your issue? We’re all curious about an update, esp after Angus shared troubleshooting steps.

---

<div class="post-metadata">

### Author: ![cogdog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cogdog/32/116536_2.png) [@cogdog](https://meta.discourse.org/u/cogdog)
#### Post date: [October 14, 2025, 9:00pm UTC](https://meta.discourse.org/t/category-request-errors/383607/7 "2025-10-14T21:00:39Z")

</div>

I got busy and forgot to reply. I cannot be sure since this is a WordPress site for the organization I work for. My colleagues who post there have not made much use of it, so I cannot be sure how long ago when I remember it worked correctly- maybe months.

No hosting change or cloudflare use. There has likely been new plugins. No change was made to discourse settings . I activated more logging when I noticed the problem.

Is there any other way to test what the discourse response is- as all the logs indicate is”

```plaintext
[2025-10-14 00:13:18] comment.ERROR: sync_comments.get_discourse_category {"message":"The categories key was not found in the response from Discourse."}

```

Sorry I cannot be specific, my focus is not on the tech stack, and my server admin is pretty weak on WordPress.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [October 15, 2025, 8:09am UTC](https://meta.discourse.org/t/category-request-errors/383607/8 "2025-10-15T08:09:52Z")

</div>

If possible, could you share a link to your wordpress and discourse instances? If that’s not possible, please have a look at the `/site.json` endpoint of your discourse. For example if you go to `meta.discourse.org/site.json` you’ll see some JSON that includes a `categories` list. Essentially that error appears if:

1. Your Discourse instance returns a non-error response; but
2. There’s no `categories` in your site.json for some reason.

The most likely cause of this is still that described in the topic @Lilly linked. If you could try walking through the steps in this topic and check whether you still have a valid connection to your Discourse:

> [@Connect WP Discourse to Discourse](https://meta.discourse.org/t/connect-wp-discourse-to-discourse/223490):
>
> After you’ve [installed the WP Discourse Plugin](https://meta.discourse.org/t/install-the-wp-discourse-plugin/223489) you need to connect it to your Discourse. When you’re ready to go, watch this short video, or follow the instructions below. Next Step Once the plugin is connected, head over to the topic describing the feature you want to set up: [Publish posts to Discourse](https://meta.discourse.org/t/wp-discourse-and-publishing-posts-to-discourse/223492)[Use Discourse for Wordpress Comments](https://meta.discourse.org/t/wp-discourse-and-commenting/223493)[Log in to Discourse with Wordpress (DiscourseConnect)](https://meta.discourse.org/t/wp-discourse-and-discourseconnect/223494)Instructions Steps When you’re looking at the Connection tab of the [WP Discourse](https://github.com/discourse/wp-discourse) plugin settings,…

---

<div class="post-metadata">

### Author: ![cogdog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cogdog/32/116536_2.png) [@cogdog](https://meta.discourse.org/u/cogdog)
#### Post date: [October 15, 2025, 4:48pm UTC](https://meta.discourse.org/t/category-request-errors/383607/9 "2025-10-15T16:48:47Z")

</div>

Thank you @angus Good to know about /site.json where [I do see all categories.](https://connect.oeglobal.org/site.json) I found the problem! It was totally [PEBKAC](https://en.wikipedia.org/wiki/User_error).

In the plugin settings, for Discourse URL, I had entered an http:// url not https:// - note the example below the field perhaps should reflect this.

 ![Screenshot 128](https://global.discourse-cdn.com/meta/original/4X/e/f/1/ef182d3201293d4aca782fe129bb9b8ebbeddd6c.jpeg)

Changing our URL to [https://connect.orglobal.org](https://connect.orglobal.org) made everything work.

I am embarrassed for missing something so obvious. Case closed.

---

<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: [November 14, 2025, 4:49pm UTC](https://meta.discourse.org/t/category-request-errors/383607/10 "2025-11-14T16:49:12Z")

</div>

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