php
How to fix the PHP error Header Already FIxed Cannot Modify
How to fix the PHP error Header Already FIxed Cannot Modify
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)
This normally can be resolved by a quick custom php.ini alteration:
1) Create a custom php.ini file (if there isn’t one already)
memory_limit = 50Mupload_max_filesize = 50Mpost_max_size = 50M
2) Add a new line that looks bellow:
output_buffering = On
This should be all that is needed to bring the site back online.
copy and paste the file in public_html folder or ur default php usage folder
now the error will be fixed enjoy!!!
0 comments