"Cannot modify header information - headers already sent by (output started at codefolder\modules\user\user.module:1)"
Check that you don't have any ending php tags at the end of your php files. Sometimes whitespace (spaces, tabs, newlines) will sneak in at the end of the file after the tag and cause php go into html mode and send the headers too early.