A user, Sami_Syed, reports an error 500 when setting up WordPress as an SSO client for Discourse. After troubleshooting, they found that clearing cache, cookies, and history resolved the issue Sami_Syed. They also asked if the WP Optimize plugin could be related, to which Simon responded that while they can’t debug WordPress plugins, knowing conflicts helps Simon. Another user, nylen, explains that the error occurs when the sso provider secrets setting is missing, causing a TypeError in the Discourse code nylen.
Instead I just reverted back to a wordpress backup from 2 days ago (with the original htaccess file). Although, the problem was still there. But when I cleared all my cache. cookies and history, it started to work again.
Kind of a weird situation but im glad I sorted it out.
I don’t know. If you can figure that out, and why that is the case, please let us know. We can’t get into a lot of WordPress development on this forum, but it’s good to know about conflicts between the WP Discourse plugin and any other WordPress plugins. It makes debugging issues a lot easier.