Richiesta categoria errori

My WordPress site with latest version of 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

[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

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?

maybe see this post (and topic)

1 Mi Piace

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.

1 Mi Piace

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

The log is full of errors:

[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”

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

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.
1 Mi Piace

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

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”

[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.

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:

2 Mi Piace

Thank you @angus Good to know about /site.json where I do see all categories. I found the problem! It was totally PEBKAC.

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.

Changing our URL to https://connect.orglobal.org made everything work.

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

2 Mi Piace