In a discussion titled “Wordpress failure to connect to Discourse,” pfaffman reported issues connecting a WordPress site to Discourse despite correct API keys and disabled plugins. simon suggested using a user-specific API key and checking HTTPS/TLS compatibility via a plugin, also noting potential php-curl issues on DigitalOcean installs. pfaffman tried the user-specific key without success. Further testing with the TLS 1.2 plugin revealed cURL SSL failures pfaffman, prompting simon to recommend installing php-curl via command line. Despite installing php-curl, cURL SSL still failed, but pfaffman later discovered the root cause was a DNS resolution issue — the domain wasn’t resolving locally. Once resolved, the connection worked. pfaffman called it a “wacky edge case” and thanked simon for assistance.
I’m trying to connect a Standard plan customer (@andrec) to their WordPress. I’ve copy-pasted the URL, and used the API key to remotely change settings, so I’m sure those are both correct.
I then disabled all plugins except wp-discourse and still no joy.
The only system settings changed on the Discourse side is the SSO key, which is the same in Discourse and WordPress, and shouldn’t matter since SSO isn’t enabled yet anyway.
Could you try generating an API Key on Discourse for @andrec and using that in place of the All Users API key?
If that doesn’t fix anything there may be an issue with the HTTPS configuration of the WordPress site. You can check for that by installing this plugin and running the test with the Paypal API endpoint.
If the WordPress site was installed with the Digital Ocean 1 click WordPress install you may need to install the php-curl extension.