haydenjames reported that after updating the WP-Discourse plugin, their WordPress site lost connection to Discourse, showing an error: ‘An invalid response was returned from Discourse’ with empty HTTP code and body. Lilly suggested checking a similar issue thread on Meta Discourse. haydenjames later identified the root cause: an expired TLS certificate on their Discourse server, which they missed because they were using Cloudflare and had temporarily lowered SSL/TLS encryption mode from Strict to Full to bypass browser errors while traveling. To fix it, they switched Discourse to the stable branch by editing /var/discourse/containers/app.yml, ran sudo ./launcher rebuild app, and confirmed the certificate was valid again. They also verified their cert renewal cron job was active and manually forced a renewal to ensure future auto-renewal works. The issue was entirely self-inflicted, and they apologized and thanked the community for the help.
Updated the wp-discourse plugin, and it breaks things again. Error:
You are not connected to Discourse. Check that your connection settings are correct. If the issue persists, enable connection logs and check Logs.
Connection log:
[2025-10-08 13:29:13] connection.INFO: check_connection_status.failed_to_connect {“error”:“wpdc_response_error”,“message”:“An invalid response was returned from Discourse”,“http_code”:“”,“http_body”:“”}
I’m at a lost I have not changed anything other than updating the WP-Discourse plugin, I just published a post as usual and noticed that it’s no longer connected.
Thanks for hinting me in the right direction. The issue was expired TLS cert. It had expired ~ 4 days ago.
I use Cloudflare, so I didn’t catch that was the issue. I should have had a but didn’t at the time, as I was traveling. So I just lowered CF’s SSL/TLS encryption mode from Strict to Full via mobile when the forums had ssl_browser error.
Anyway today I used the opportunity to switch to the stable branch. Edited /var/discourse/containers/app.yml to uncomment “version” and set it to stable: