What is the cause of 'Cannot modify header information - headers already sent'?
Some html is being sent before a header() command that you are using for a redirect
header()
Semicolon missing
Using a key on an array that does not exists
You are trying to modify a private value