I'm using Fat Free Framework 3.5 on Php 5.6 and can't get rid of the error:
Fatal error: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead.
On a shared host, I don't have access to the php.ini file.
Google told me I could add this to my .htaccess
<IfModule mod_php5.c>
php_flag always_populate_raw_post_data -1
</IfModule>
but that didn't do anything.
I've changed all instances of
$f3->get("BODY")
to
file_get_contents('php://input')
but this doesn't seem to help either.
What gives? How do I fix this?
The answer seems to be: don't use godaddy hosting. I switched over to a Heroku php instance and everything works flawlessly.