Cannot modify header information – headers already sent by error

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 & .user.ini  file in the folder of your script and add the following line in it:

buffer_output = on

3. If the warnings are not affecting the functionality of your website, you can simply hide them.

  • Email, SSL
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What do I need to do to put Flash on my website?

Flash is a client side feature - it runs on the user's computer, not on your web host. As long as...

What are private nameservers and how do I set them up?

Private nameservers are where your domain points to our nameservers so that your customers do not...

Static IP vs. Dynamic IP Address

A static IP address is one that remains fixed and never changes. The PC always sees the same...

Protecting Yourself Against Viruses & Data Loss

It is vital to ensure your computer is protected from viruses and trojans. As well as...

How to Upgrade perl?

Run the following command. cd /usr/local/src ; wget...