Cannot modify header information – headers already sent by …
If you receive a warning on your pages similar to the one below:
"Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/index.php:581) in /home/user/public_html/system/sessions.php on line 180"
there are a few things you can do in order to fix the issue:
1. You should check for any empty lines at the end of your .php files. This is a common issue with some web applications. Simply remove the empty line at the end of your script( after the final "?>" or "php>" string) and check your website again.
2. You can make a local php.ini file in the folder of your script and add the following line in it:
buffer_output = on
For more information on php.ini files, you can refer to this article.
3. If the warnings are not affecting the functionality of your website, you can simply hide them. Detailed instructions on how to do this can be found here.
You find this article useful? Click here to learn more about SiteGround web hosting experts and what else we can do for you!