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.
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
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?
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?