Headers already sent in Pluggable.php / homepage and wp-login error

It is usually because there are spaces, new lines, or other stuff before an opening tag, typically in wp-config.php. This could be true about some other file too, so please check the error message, as it will list the specific file name where the error occurred.

Other Resources: