Got mix-content error and confused
The user Vencent encountered a mix-content error after enabling the WP-Discourse plugin, where avatars were loaded through HTTP instead of HTTPS. This issue was caused by the Discourse site previously using HTTP and later switching to HTTPS without updating some settings.
Vencent suspected that the issue was related to the SSL certification assigned to the outer Nginx. simon suggested that the image URLs returned from the Discourse forum were in HTTP, which was causing the issue.
Vencent fixed the issue by enabling force HTTPS in Discourse. However, another issue arose where a “show full post” button was displayed under the Onebox, even when the post only contained a link. simon suggested unselecting the ‘embed truncate’ setting in Discourse to resolve this issue.
Vencent was unsure why the “show full post” button was still displayed, despite unselecting the “Publish the full post to Discourse” setting in WP-Discourse. simon clarified that the setting was not applicable when using a custom template and provided instructions on how to remove the button.
Vencent also raised a concern about users being able to edit their Discourse usernames, which could cause problems. simon suggested selecting the option ‘Do Not Display Discourse Name Field’ to prevent editing, but noted that this would also hide the Discourse username.
Simon proposed a solution to display the Discourse username without allowing editing. mr8 shared a similar experience and provided instructions on how to specify HTTPS in the outer Nginx config to resolve the issue.