Have questions? Call us.
Panama: (+507) 264.0852

Headers already sent PHP Error knowledgebase

How To Fix "headers already sent" PHP Errors

Sometimes you my see an issue loading your site ( sometimes a 500 error ) and when you look into the Apache logs, you see a similar message:PHP Warning: Cannot modify header information – headers already sent by (output started at /home/someuser/public_html/somescript.php)

To fix this make sure the PHP scripts are uploaded to the server in ASCII format as file enconding like UTF-8 may cause this issue.
It could also be possible that, as in this case, file somescript.php has blank spaces at the beginning of the file or it is printing or echoing any character that should not be there.

Need assistance choosing your right server? We are here to help

Call our sales team at +(507) 264.0852 or talk with us on Live Chat