I have run into this problem in my Codeigniter app:
A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /application/controllers/training.php:1)
Filename: libraries/Session.php
Line Number: 671
I have been checking for whitespaces and I am not sending headers.
The ONLY way this error appears is when I am updating the view and controller files.
My code ran fine until I updated some files, then the error (above) refuses to disappear.
When I clear my cache and log back in again, the error doesn't show.
Does anyone know why?
Copyright Notice:Content Author:「Kevin Simper」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/7408827/codeigniter-header-error