Hi there,
I am using Wordpress as the identity provider for Discourse using DiscourseConnect.
What is the meaning of these errors in the screenshot in WP-Discourse plugin?
You are not connected to Discourse. Check that your connection settings are correct. If the issue persists, enable connection logs and check Logs.
There is no admin user on Discourse with the email address admin@xxx.xxx. If you have an existing Discourse admin account, before enabling DiscourseConnect please ensure that your email addresses on Discourse and WordPress match. This is required for DiscourseConnect login to an existing Discourse account.
The Log output:
[2026-02-25 23:14:12] connection.INFO: check_connection_status.failed_to_connect {"error":"wpdc_response_error","message":"An invalid response was returned from Discourse","http_code":"","http_body":""}
[2026-02-25 23:14:13] sso_provider.ERROR: logout.response_error {"message":"There was an error in logging out the user from Discourse.","user_id":1,"discourse_user_id":"1"}. <--- happens for other User IDs too
Currently all the setup is in my own localhost. Can that be a problem?
WP: http://wp.mysite.test
Discourse: http://localhost:4200 (installed using the guide Install Discourse on macOS for development ).
I have followed the steps for setting up SSO in this guide Setup DiscourseConnect - Official Single-Sign-On for Discourse (sso) .
As far as I can tell, the SSO itself is working except for when logging out in WP it doesn’t log out the user in Discourse. It works fine when the logout is initiated in Discourse.
The user admin@xxx.xxx in Discourse was created during the CLI installation process. It has the same email as the WP admin user, but I think I used a different password than WP (does it matter?).
Anyway after the SSO is setup, the admin user admin@xxx.xxx can login to both WP and Discourse correctly using SSO, as admins in both apps. So I am not sure what the error means when it says There is no admin user on Discourse with the email address admin@xxx.xxx. Perhaps that’s why it couldn’t logout the user properly?
Any help is truly appreciated.
