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

Setting up Private Nameservers on a domain registered with MDDHosting

The steps below outline the process for setting up private nameservers on a domain registered...

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...

What are the white-label nameservers for resellers?

Our white-label nameservers for reseller accounts...

I am getting a 403 or 406 error when trying to login or upgrade my script. [WordPress, Joomla, Drupal, SMF, IPB, vBulletin, etc...]

Why am I getting a 403 0r 406 when trying to login or update?As of early April 2015 we enabled a...

Adjusting Server Time in PHP

All of our servers are configured to Eastern Time by default.  It is possible, however, for...