[wp-trac] [WordPress Trac] #31806: PHP Deprecated: $HTTP_RAW_POST_DATA
WordPress Trac
noreply at wordpress.org
Mon Mar 30 18:58:23 UTC 2015
#31806: PHP Deprecated: $HTTP_RAW_POST_DATA
--------------------------+------------------------------
Reporter: jack772015 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.1.1
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by jdgrimes):
I've gotten this error occasionally on a site running PHP 5.6 as well.
This error actually has nothing to do with WordPress. Here is
[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/
a good read on it]:
> tl;dr: ... Perfectly good code will spit out that error whenever it
receives a request that has a (non-`application/x-www-form-urlencoded`
encoded) payload. To fix it, explicitly set the value of
`always_populate_raw_post_data` to `-1` in your `php.ini`.
Note also that:
> Unfortunately it’s not possible to override this value using `ini_set`
..., so one actually has to set it in `php.ini`.
So there is absolutely nothing that WordPress can do about this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31806#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list