Warning about `$HTTP_RAW_POST_DATA` being deprecated

Receive error in your error_log on Automatically populating $HTTP_RAW_POST_DATA is deprecated

===

[08-Apr-2018 23:05:29 UTC] 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
[08-Apr-2018 23:05:34 UTC] 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
[08-Apr-2018 23:05:37 UTC] 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
[08-Apr-2018 23:05:40 UTC] 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

===

Error message that found in your Error_log on your File Manager.
photo php warning about http raw post data being deprecated 1 1024x339 - Warning about `$HTTP_RAW_POST_DATA` being deprecated

Access your Cpanel and search for “ini” which will search result of MultiPHP INI Editor, click and access into it.
photo php warning about http raw post data being deprecated 2 - Warning about `$HTTP_RAW_POST_DATA` being deprecated

In your MultiPHP INI Editor, click Editor Mode.
photo php warning about http raw post data being deprecated 3 1024x394 - Warning about `$HTTP_RAW_POST_DATA` being deprecated

Click the drop-down menu and select your domain name.
photo php warning about http raw post data being deprecated 4 1024x354 - Warning about `$HTTP_RAW_POST_DATA` being deprecated

Just below the empty new line, insert the coding show below.
photo php warning about http raw post data being deprecated 5 1024x441 - Warning about `$HTTP_RAW_POST_DATA` being deprecated

Insert into PHP INI Editor Mode Setting

always_populate_raw_post_data = -1

It should look like this, click save.
photo php warning about http raw post data being deprecated 6 1024x431 - Warning about `$HTTP_RAW_POST_DATA` being deprecated

That’s all.

Leave a Reply

Scroll Up