A PHP Error was encountered
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/aphotel/public_html/application/config/config.php:1)
Filename: libraries/Session.php
Line Number: 366
#
Weird part of it, there is no session.php file in libraries folder
I had this problem before and it was caused by output_buffering was Off.
Edit your php.ini and search for output_buffering and make it looks like this
Make sure you do not have any white space characters before the opening php tag in your controller class.
There seems to be whitespace before the php open tag
In PHP Use " ob_start(); " at first line and in CI controller constructor at first line " ob_start(); " //output buffer
There is space before the
<?php
tag in the below file. I have seen this issue multiple times.Just load session library first.