Z-Push-contrib
Z-Push-contrib copied to clipboard
PHP 5.6: Error because "$HTTP_RAW_POST_DATA"
When installing this on a standard PHP 5.6 install, the following error is being thrown and breaks the whole app:
[error] 27733#0: *14873 FastCGI sent in stderr: "PHP message: PHP Deprecated: 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. in Unknown on line 0" while reading response header from upstream, client: […]
The line in question is commented out in the default php.ini for 5.6. So you have to un-comment it. Maybe there is something that could / should be changed in z-push for future releases' better compatibility.
http://php.net/manual/en/reserved.variables.httprawpostdata.php
https://www.bram.us/2014/10/26/php-5-6-automatically-populating-http_raw_post_data-is-deprecated-and-will-be-removed-in-a-future-version/