# Category endpoints not working

**URL:** https://meta.discourse.org/t/category-endpoints-not-working/328031
**Category:** Support
**Tags:** wordpress, lazy-load-categories
**Created:** [September 20, 2024, 8:33pm UTC](https://meta.discourse.org/t/category-endpoints-not-working/328031 "2024-09-20T20:33:51Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![Stevej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stevej/32/433096_2.png) [@Stevej](https://meta.discourse.org/u/Stevej)
#### Post date: [September 20, 2024, 8:33pm UTC](https://meta.discourse.org/t/category-endpoints-not-working/328031/1 "2024-09-20T20:33:51Z")

</div>

I am a new user and have hit. a problem the connection tab says I am connected to discourse, but I cannot select a default discourse category because it doesn’t see a connection.  
what did I do wring here?

 ![Screenshot 2024-09-20 at 14.31.25](https://global.discourse-cdn.com/meta/original/4X/5/c/8/5c8104d0145ad0db92425771d4ff3b3f45f28593.png)

thanks Steve

---

<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: [September 24, 2024, 6:19am UTC](https://meta.discourse.org/t/category-endpoints-not-working/328031/2 "2024-09-24T06:19:17Z")

</div>

Hey Steve, sorry to be a pain but could you also share a screenshot of the notice saying you’re connected to Discourse? Thanks.

---

<div class="post-metadata">

### Author: ![Stevej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stevej/32/433096_2.png) [@Stevej](https://meta.discourse.org/u/Stevej)
#### Post date: [September 24, 2024, 4:29pm UTC](https://meta.discourse.org/t/category-endpoints-not-working/328031/3 "2024-09-24T16:29:36Z")

</div>

hi Angus absolutely

 ![Screenshot 2024-09-24 at 10.22.34](https://global.discourse-cdn.com/meta/original/4X/c/1/9/c1954f6d26c2755b6c381ba7938b5b236695de33.png)

and here is an image of the discourse API page  
after selecting “all users” there was no option to set a user to one of the admin accounts

 ![Screenshot 2024-09-24 at 10.24.14](https://global.discourse-cdn.com/meta/original/4X/9/f/b/9fb3c79fcaf49a380a165d226389244a4320b220.png)

the discourse icon appears on the posting page but as you can see there is an error

 ![Screenshot 2024-09-24 at 10.27.26](https://global.discourse-cdn.com/meta/original/4X/8/0/4/8045c03f0fe23309bcb8d8b42205d1eda21968ca.png)

I am sure I am a complete idiot and missed something obvious but anything you can suggest would be great

---

<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: [September 24, 2024, 4:53pm UTC](https://meta.discourse.org/t/category-endpoints-not-working/328031/4 "2024-09-24T16:53:14Z")

</div>

Thanks for the extra info Steven. Could you also share your [WP Discourse](https://github.com/discourse/wp-discourse) logs with me (see “Logs” in the [WP Discourse](https://github.com/discourse/wp-discourse) admin panel). There will likely be an error message.

---

<div class="post-metadata">

### Author: ![Stevej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stevej/32/433096_2.png) [@Stevej](https://meta.discourse.org/u/Stevej)
#### Post date: [September 24, 2024, 8:06pm UTC](https://meta.discourse.org/t/category-endpoints-not-working/328031/5 "2024-09-24T20:06:11Z")

</div>

Hi Angus thanks for the quick response here are the logs for 20 23 and 24

 ![Screenshot 2024-09-24 at 14.04.42](https://global.discourse-cdn.com/meta/original/4X/1/c/2/1c28590376362bc68d6db98080dcba10a33dcee5.png)  
 ![Screenshot 2024-09-24 at 14.04.53](https://global.discourse-cdn.com/meta/original/4X/6/e/a/6ead869cf19068194d75e153c6378e19de69ea11.png)  
 ![Screenshot 2024-09-24 at 14.05.01](https://global.discourse-cdn.com/meta/original/4X/8/4/1/8417e5ce0afa54a32cd618adeb1653c39b4a9eef.png)

---

<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: [September 25, 2024, 6:46am UTC](https://meta.discourse.org/t/category-endpoints-not-working/328031/6 "2024-09-25T06:46:37Z")

</div>

Thanks Steven, I need the full line of the ones that have “error” in them. Please copy the line and paste it in a post here.

---

<div class="post-metadata">

### Author: ![Stevej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stevej/32/433096_2.png) [@Stevej](https://meta.discourse.org/u/Stevej)
#### Post date: [September 26, 2024, 4:13pm UTC](https://meta.discourse.org/t/category-endpoints-not-working/328031/7 "2024-09-26T16:13:35Z")

</div>

**Hi Angus here you are the three error messages from the first day**

```plaintext
*2024-09-20 19:53:22] publish.ERROR: create_post.post_error {"wp_title":"VAT Concerns","wp_author_id":"255739202","wp_post_id":249,"response_message":"You supplied invalid parameters to the request: category","http_code":400}

[2024-09-20 19:55:56] connection.INFO: check_connection_status.failed_to_connect {"error":"wpdc_response_error","message":"An invalid response was returned from Discourse","http_code":"","http_body":""} 

[2024-09-20 20:10:52] publish.ERROR: create_post.post_error {"wp_title":"VAT Concerns","wp_author_id":"255739202","wp_post_id":249,"response_message":"You supplied invalid parameters to the request: category","http_code":400}

```

**In addition I retried posting from Wordpress to discourse and whilst the category list still can’t be returned**

 ![Screenshot 2024-09-26 at 10.10.02](https://global.discourse-cdn.com/meta/original/4X/e/6/1/e612c5b71c9b99cad3a729211b0699f1fabfec9d.png)

I was able to post to discourse in the uncategorised category

the log from this morning

```plaintext
[2024-09-26 15:14:07] connection.INFO: check_connection_status.successful_connection  
[2024-09-26 15:14:07] connection.INFO: check_connection_status.valid_scopes  
[2024-09-26 15:57:30] connection.INFO: check_connection_status.successful_connection  
[2024-09-26 15:57:30] connection.INFO: check_connection_status.valid_scopes  
[2024-09-26 16:05:05] publish.INFO: create_post.post_success {"wp_title":"Understanding and Interpreting Mock, Predicted, and GCSE Scores","wp_author_id":"255739202","wp_post_id":186} 
[2024-09-26 16:05:05] publish.INFO: create_post.body_valid {"wp_title":"Understanding and Interpreting Mock, Predicted, and GCSE Scores","wp_author_id":"255739202","wp_post_id":186} 
[2024-09-26 16:05:05] publish.INFO: create_post.after_publish {"post_id":186,"remote_post_type":"create_post","discourse_post_id":"52","discourse_topic_id":"35","discourse_permalink":"https://schoolreviews.discourse.group/t/understanding-and-interpreting-mock-predicted-and-gcse-scores/35"} 
[2024-09-26 16:05:06] webhook_topic.INFO: update_topic_content.update_post_metadata_success {"post_ids":"186"}

```

hope this helps

---

<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: [September 27, 2024, 12:19pm UTC](https://meta.discourse.org/t/category-endpoints-not-working/328031/8 "2024-09-27T12:19:11Z")

</div>

Thanks for your patience with this Steve. It looks like your Discourse is not returning categories as the plugin expects.

1. `https://schoolreviews.discourse.group/site.json` does not contain any categories. This is what the [WP Discourse](https://github.com/discourse/wp-discourse) plugin uses to populate the category list.

2. However I do see that your site does have public categories, as they’re available in `https://schoolreviews.discourse.group/categories.json`.

Indeed, going to your Discourse, I see that Discourse features that rely on category lists are also not working.

 ![Screenshot at Sep 27 14-17-15](https://global.discourse-cdn.com/meta/original/4X/6/5/4/6549c7fa0d82af7d13a68d57434941eeb36468da.jpeg)

I’m going to move this topic to #Contribute > Bug as it’s an issue with Discourse, not the [WP Discourse](https://github.com/discourse/wp-discourse) plugin.

---

<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: [September 27, 2024, 6:36pm UTC](https://meta.discourse.org/t/category-endpoints-not-working/328031/9 "2024-09-27T18:36:15Z")

</div>

Assuming the site’s on the Discourse Starter plan, this might not be a bug. It doesn’t look like that plan allows for API or Webhook access: [Discourse pricing | Discourse - Civilized Discussion](https://discourse.org/pricing).

Edit: the [WP Discourse](https://github.com/discourse/wp-discourse) “You are connected to Discourse” message wouldn’t get displayed if the API was disabled, so that’s probably not the cause of the issue.

---

<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 27, 2024, 7:03pm UTC](https://meta.discourse.org/t/category-endpoints-not-working/328031/10 "2024-09-27T19:03:55Z")

</div>

I believe the OP is on basic plan which is not the same as the starter plan. We didn’t take API or webhook access away from existing Basic customers.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [September 27, 2024, 7:27pm UTC](https://meta.discourse.org/t/category-endpoints-not-working/328031/11 "2024-09-27T19:27:28Z")

</div>

Longshot: did you change the `lazy load categories groups` setting?

---

<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: [September 27, 2024, 7:34pm UTC](https://meta.discourse.org/t/category-endpoints-not-working/328031/12 "2024-09-27T19:34:34Z")

</div>

> [@simon](#):
>
> Assuming the site’s on the Discourse Starter plan, this might not be a bug. It doesn’t look like that plan allows for API or Webhook access: [Discourse pricing | Discourse - Civilized Discussion](https://discourse.org/pricing).

Even if that were the case, there is currently an issue loading categories on Steve’s Discourse, i.e. Discourse itself is broken, separate from [WP Discourse](https://github.com/discourse/wp-discourse)’s issues.

---

<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 27, 2024, 7:49pm UTC](https://meta.discourse.org/t/category-endpoints-not-working/328031/13 "2024-09-27T19:49:31Z")

</div>

> [@RGJ](#):
>
> Longshot: did you change the `lazy load categories groups` setting?

Yea in this case it would likely be best to leave that setting as blank. I had a look and it’s been changed to `everyone`. @Stevej try reverting that setting and see if that helps.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [September 27, 2024, 7:58pm UTC](https://meta.discourse.org/t/category-endpoints-not-working/328031/14 "2024-09-27T19:58:15Z")

</div>

(I know it’s a beta flag but Isn’t it time to hide that setting until it stops causing so many issues?)

---

<div class="post-metadata">

### Author: ![Stevej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stevej/32/433096_2.png) [@Stevej](https://meta.discourse.org/u/Stevej)
#### Post date: [September 27, 2024, 9:04pm UTC](https://meta.discourse.org/t/category-endpoints-not-working/328031/16 "2024-09-27T21:04:36Z")

</div>

Hi Everyone,  
Thanks for your help, yes I am on the basic plan not the starter plan.  
I deselected lazy load as suggested by several of you and that seems to have solved the issue.  
thank you all again!  
Steve

---

<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: [October 27, 2024, 9:05pm UTC](https://meta.discourse.org/t/category-endpoints-not-working/328031/17 "2024-10-27T21:05:03Z")

</div>

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