Integrated Discourse with Wordpress but the URL to 'continue the discussion' doesn't work

AI-generated summary

Users are experiencing issues with the integrated Discourse and WordPress plugin, specifically regarding broken SSO links and the ‘Published category’ dropdown failing to populate. mikeem reported that the ‘continue the discussion’ link is incomplete and the category field is blank, suggesting a lack of connection. Grex315 suggested checking if allow_url_fopen is enabled in the PHP.ini file, though mikeem confirmed this was already active. Mitch experienced the same category dropdown issue, noting posts were defaulting to ‘Misc’. He later discovered that disabling his Genesis theme temporarily revealed the category field as a text box, which resolved the issue upon re-enabling the theme Mitch. AdamCapriola recommended checking the discourse_permalink custom field and trying to disable SSO. Finally, PopsRocker shared a similar fix involving ensuring the ‘Discourse URL’ in settings included the http:// prefix, which was missing in their configuration.

Hey.

So installed the Wordpress plugin and configured it, so this where comments were this now appears below new posts:

But the link looks incomplete:

http://discourse.example.com/session/sso?return_path=

Here’s the config on WP:
(I have API key and URL to discourse set up)

Also the config field “published category” doesn’t populate (blank dropdown) so may suggest it’s not linked with Discourse.

Any ideas?

Cheers

In your PHP.ini file do you have “allow_url_fopen” enabled. This was an issue for me at first. Some hosts have this turned off by default for security reasons.

This was enabled and still no luck. Ideas anybody?

I’ve got the same problem, the published category drop down is blank. My posts are being published, but not to the category I want, ending up in Misc I believe.

Look at the custom fields for the post. What is the value for discourse_permalink? Also try disabling SSO.

(Relevant plugin file.)

Weird, I disabled my theme (Genesis framework/child theme) and the Published category went from drop down box to a text field. I entered the category I want and new posts are going where they should. I then re-enabled my theme and all is still as it should be. The only thing I can think of is that I viewed the wp-discourse options page on my iPad at one point. SSO was not enabled.

I had the same thing happening but also was not getting the posts published to the Discourse forum.

My fix … the “Discourse URL” in the plugin settings didn’t have the http:// before the URL. Something that has become a bad habit of mine. I used to always include the http even when I knew it wasn’t necessary but far too many apps, forms, web properties etc. have made people LAZY.

… Pops