PHP - Cannot modify header information - headers already sent by ...

This message means that your PHP script is sending data to the web browser before the headers and is actually fairly common. To resolve this issue you simply will need to edit the .htaccess file in your public_html folder on your account and add this line:

php_flag output_buffering on

Output buffering causes the web server to process all PHP before sending anything to the browser which allows your script to modify the headers at any time during the execution of the script, eliminating this error message.

  • 151 Users Found This Useful
Was this answer helpful?

Related Articles

How do I access my cPanel?

Accessing your cPanel directly You can get to your control panel by appending "/cpanel" on to...

Can you enable "local-infile" for MySQL please?

Unfortunately this is an option that we will not enable in any of our shared environments such as...

ClipShare/phpMotion - Thumbnails generated but video not visible?

Q. I have configured the correct paths to ffmpeg and mencoder in my video sharing scripts, but it...

How do I download my copy of WHMCS?

To download your copy of WHMCS: Log into our support system at...

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

Private nameservers are just custom DNS and HOST records that point to our DNS Cluster IPs. ...