Wordpress Plugin Error on Login

AI-generated summary

In the WordPress category, user Fillipe_Cordeiro reported a “Cannot modify header information” error when using the Discourse plugin for login. Developer simon identified a bug in the code and informed the user that an update would be available shortly. After confirming that no other plugins were initially suspected, Fillipe mentioned using OptimizePress/OptimizeMember. Simon released version 1.0.1 to fix the reported error but noted a potential conflict with the third-party plugin. Following the update, Fillipe confirmed that the issue is resolved, though they noted the setup worked without problems prior to version 1.0.

Hi,

I’ve got some errors when to try to login on my Wordpress with Discourse plugin.

Warning: Cannot modify header information - headers already sent by (output started at /nfs/c12/h04/mnt/217028/domains/membros.androidaccelerate.com.br/html/wp-content/plugins/wp-discourse/lib/discourse-sso.php:227) in /nfs/c12/h04/mnt/217028/domains/membros.androidaccelerate.com.br/html/wp-includes/pluggable.php on line 994

What’s happening?

Thanks

Do you have SSO enabled in the plugin’s settings?

Edit: I see where there could be a problem. Check for an update in the next couple of hours.

Yes, this is the only feature that I’m using from Discourse Wp Plugin.

OK, I’m waiting for.

Thank you.

No problem, thanks for posting the error information. There was a bug in the code. I’ve fixed it on my local machine, but still have to push it to the WordPress plugin repo. I’ll do that right away.

Are you using any other WordPress plugins that could affect the login process?

Yes, I’m using OptimizePress/OptimizeMember.

The plugin is updated to version 1.0.1 in the WordPress plugin repo now. That should take care of the error you posted. There may still be a conflict with the OptimizeMember plugin. Can you try out the new version and let me know?

Apparently, this is ok now. Before the update to 1.0 was working without issues.