GICT knowledge base
*Warning*: Cannot modify header information – headers already sent
Published
If you get an error in your PHP code similar to the below:
*Warning*: Cannot modify header information – headers already sent by
(output started at /home/thefatr/public_html/pgheader.php:12) in
*/home/thefatr/public_html/family_package_locator.php*on line *22*
To fix the error enable output_buffering in PHP.ini, or use INI_SET to enable output buffer.
Example in PHP.ini: output_buffering = On
Example INI Set: ini_set(‘output_buffering’, 1);
If you need any further assistance please contact our support department.
Related guides
How to Restrict an SSH Key to One Command
Restrict an SSH key to one command with authorized_keys options. Protect the command and check that unwanted shell and forwarding access are denied.
Linux and CommandsSelf-Hosted Video Processing With FFmpeg: A Practical Guide
Learn how to self-host video processing on a VPS using FFmpeg, with practical commands for conversion, compression, thumbnails, and automated workflows.
Linux and CommandsHow to use nohup: Commands in Linux That Survive Terminal Closes
Keep commands running after you close the terminal. nohup examples with wget, Python, rsync, and Docker on any VPS.
Linux and CommandsHow to Fix “Too Many Open Files” Error on Linux Servers
Learn how to fix the "Too Many Open Files" error on Linux servers by understanding file descriptors, adjusting limits, and diagnosing leaks effectively.
