Home
/
Website Help
/
Other
/
Cannot modify header information - headers already sent by ...

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 to do to fix the issue:

1. Check for any empty lines at the end of your .php files. This is a common issue with some web applications. Remove the empty line at the end of your script( after the final “?>” or “php>” string) and check your website again.

2. 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, refer to this article.

3. If the warnings are not affecting the functionality of your website, you can hide them. Detailed instructions on how to do this can be found here.

Share This Article