Issues with category selection in WP-Discourse

AI-generated summary

Users HAWK and ggaines1 reported issues with WP-Discourse v0.6.6 not pulling categories from Discourse, displaying the error “There was an error returning the category list from Discourse” ggaines1. techAPJ attempted to reproduce the issue but succeeded on a fresh WordPress install, offering to investigate further with admin access. simon identified the root cause as misconfiguration: users must ensure they’re connected to Discourse (visible in WP Discourse Connection settings), use an All Users API Key (not a user-specific one), and set the Publishing Username to system (the default Discourse system user). Following these steps, ggaines1 confirmed the fix worked after creating a new API key and updating the username to system. The issue appears resolved for the reporter, though HAWK humorously noted they couldn’t recall past details to assist further.

I’m having real trouble with the latest version of WP-Discourse (0.6.6)
It’s not pulling the categories across from Discourse and nothing I do seems to change that.

Help!

I am looking into this issue now.

Hi @HAWK,

I am unable to repro this issue on a fresh WP instance I just set up:

If you can PM me your WP Admin credentials I can check why you are having this issue.

これは解決しましたか?
私も同じエラーが発生しています。
カテゴリリストの取得ができません。
また、WordPress の投稿ページにフォーラムへの招待を投稿することもできません。
私はこの分野にあまり詳しくありません。ありがとう、グレッグ

先日の夕食が何だったかも覚えていないのに、4年前の出来事なんて思い出しようがありません!

もしもっと詳しい情報があれば、調査できますよ。:slight_smile:

申し訳ありません、4月のことを見てしまいました
WordPressサイトにWP Discourseプラグインをインストールしました
技術に詳しくないため
あまり覚えていませんね!No Load Categories|421x500

特定のカテゴリに投稿を公開しようとしています

ユーザー名を確認しましたが、一致しています

ありがとう、グレッグ

スクリーンショットに表示されている「Discourse からカテゴリ一覧を返す際にエラーが発生しました」というエラーメッセージは、プラグインの設定に問題があることを示しています。WP Discourse の接続設定タブに移動し、「Discourse に接続されています」という通知が表示されているか確認してください。

そのページの API キーフィールドには、「全ユーザー用 API キー」が入力されていますか?入力されていない場合は、API キーを全ユーザー用に変更してみてください。Discourse 側では、キーは以下のように生成します。

WP Discourse の公開ユーザー名フィールドには、Discourse のシステムユーザー名を使用してください。Discourse でそのユーザー名を変更していない場合は、公開ユーザー名フィールドに system と入力してください。

これで接続できました

新しいキーを作成し

名前を systm に変更して、現在接続済みです。ありがとう、グレッグ