Login error, possibly related to Wordpress SSO (for single user)

AI-generated summary

A user in a Discourse community is experiencing a login error, despite being able to log in to their account on the associated WordPress (WP) site. The error message reads: “There is a problem with your account. Please contact the site’s administrator.” Other users can log in without issues. The problem may be related to the user changing their username, although WP does not allow username changes.

simon suggested enabling the “verbose sso logging” Site Setting to troubleshoot the issue. After trying this solution, jord8on was able to resolve the problem with the help of a linked discussion on debugging and fixing common SSO issues.

I have a user in my Discourse community who used to be able to login but is now unable to do so. They are able to login to their account on our WP site but when they come to the discourse and click “Login” the get the following error:

Login Error
There is a problem with your account. Please contact the site’s administrator.

Other users are able to login to the discourse community without a problem.

I think that perhaps the issue came from the user changing their username on one system or the other. (WP says “Usernames cannot be changed.” on their end)

I found a couple similar-ish posts but they didn’t have a solution for my issue.

This topic might help: Debug and fixing common DiscourseConnect issues.

The first thing you need to do is enable the verbose sso logging Site Setting and have the user try logging in again. There should be some information in the logs that tells you what the problem is.

It took a bit of trial and and lots of error but I finally got it to work using that helpful discussion you linked to. Thank you, sir!