How to debug error message: Cannot modify header information

How to debug error message: Cannot modify header information