Title: Automatically populating $HTTP_RAW_POST_DATA is deprecated
Last modified: August 30, 2016

---

# Automatically populating $HTTP_RAW_POST_DATA is deprecated

 *  Resolved [philsalt](https://wordpress.org/support/users/philsalt/)
 * (@philsalt)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/automatically-populating-http_raw_post_data-is-deprecated/)
 * This error message recorded in the php5.6 error log:
 * “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”
 * Have disabled all plugins including WooCommerce, error is not recorded. Enabling
   only WooCommerce plugin brings back the error
 * Using WooThemes Storefront theme
 * Cheers,
 * Phil
 * [https://wordpress.org/plugins/woocommerce/](https://wordpress.org/plugins/woocommerce/)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/automatically-populating-http_raw_post_data-is-deprecated/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/automatically-populating-http_raw_post_data-is-deprecated/page/2/?output_format=md)

 *  Plugin Contributor [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/automatically-populating-http_raw_post_data-is-deprecated/#post-6436999)
 * Hey,
 * When you disable WooCommerce, extensions that rely on it also stop working. Can
   you do it without extensions too so we can figure out which one is causing it?
 *  Thread Starter [philsalt](https://wordpress.org/support/users/philsalt/)
 * (@philsalt)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/automatically-populating-http_raw_post_data-is-deprecated/#post-6437176)
 * Hey Mike,
 * All plugins & extensions were disabled & no error recorded.
 * 1st & only plugin switched WooCommerce & error appears.
 * Compared WooCommerce 2.4.4 php files against 2.4.3, and ran updated files through
   [http://phpcodechecker.com](http://phpcodechecker.com). Nothing found.
 * Set always_populate_raw_post_data to -1 in .user.ini in root. Error still present.
 * Thanks in advance
 *  Plugin Contributor [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/automatically-populating-http_raw_post_data-is-deprecated/#post-6437220)
 * Logged [https://github.com/woothemes/woocommerce/issues/8848](https://github.com/woothemes/woocommerce/issues/8848)
 *  Plugin Contributor [Claudio Sanches](https://wordpress.org/support/users/claudiosanches/)
 * (@claudiosanches)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/automatically-populating-http_raw_post_data-is-deprecated/#post-6437286)
 * `$HTTP_RAW_POST_DATA` is deprecated from PHP 5.6 and we’ll remove this from WooCommerce
   core too.
 * [@philsalt](https://wordpress.org/support/users/philsalt/) Thank you for letting
   us know about it 🙂
 *  Thread Starter [philsalt](https://wordpress.org/support/users/philsalt/)
 * (@philsalt)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/automatically-populating-http_raw_post_data-is-deprecated/#post-6437339)
 * Updated code from [https://github.com/woothemes/woocommerce/commit/8da736908843ab66269c738b4656a5386aeb7a81](https://github.com/woothemes/woocommerce/commit/8da736908843ab66269c738b4656a5386aeb7a81)
   except readme.txt
 * Still getting error.
 * Tried switching off deprecated errors using:
    1. .user.ini – error_reporting 
   = E_ALL & ~E_DEPRECATED 2. wp-includes/load.php:
 * function wp_debug_mode() {
    if ( WP_DEBUG ) { error_reporting( E_ALL ^ E_DEPRECATED);
 * Does WooCommerce have an overide over WordPress regarding php error reporting?
 *  Plugin Contributor [Claudio Sanches](https://wordpress.org/support/users/claudiosanches/)
 * (@claudiosanches)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/automatically-populating-http_raw_post_data-is-deprecated/#post-6437354)
 * [@philsalt](https://wordpress.org/support/users/philsalt/) Show me your full 
   PHP version.
 *  Thread Starter [philsalt](https://wordpress.org/support/users/philsalt/)
 * (@philsalt)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/automatically-populating-http_raw_post_data-is-deprecated/#post-6437356)
 * Per phpinfo.php 5.6.0
 *  Plugin Contributor [Claudio Sanches](https://wordpress.org/support/users/claudiosanches/)
 * (@claudiosanches)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/automatically-populating-http_raw_post_data-is-deprecated/#post-6437358)
 * [@philsalt](https://wordpress.org/support/users/philsalt/) check if:
 *     ```
       $ php -v
       ```
   
 *  Thread Starter [philsalt](https://wordpress.org/support/users/philsalt/)
 * (@philsalt)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/automatically-populating-http_raw_post_data-is-deprecated/#post-6437369)
 * PHP 5.4.32 (cli)
 *  Plugin Contributor [Claudio Sanches](https://wordpress.org/support/users/claudiosanches/)
 * (@claudiosanches)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/automatically-populating-http_raw_post_data-is-deprecated/#post-6437371)
 * [@philsalt](https://wordpress.org/support/users/philsalt/) weird xD
    I’m testing
   with `5.6.12` and works fine on a ubuntu machine.
 *  Plugin Contributor [Claudio Sanches](https://wordpress.org/support/users/claudiosanches/)
 * (@claudiosanches)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/automatically-populating-http_raw_post_data-is-deprecated/#post-6437372)
 * have you enabled on your server the `phpversion()` function?
 *  Plugin Contributor [Claudio Sanches](https://wordpress.org/support/users/claudiosanches/)
 * (@claudiosanches)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/automatically-populating-http_raw_post_data-is-deprecated/#post-6437373)
 * Try create a .php file with:
 *     ```
       <?php
       	printf( '<p>PHP_VERSION: %s | phpversion(): %s</p>', PHP_VERSION, phpversion() );
       ?>
       ```
   
 * If possible can take a screenshot of the result or show me the URL.
 *  Thread Starter [philsalt](https://wordpress.org/support/users/philsalt/)
 * (@philsalt)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/automatically-populating-http_raw_post_data-is-deprecated/#post-6437374)
 * Ubuntu too
 * I wonder if a manual install of WooCommerce would be worth a go.
 * Thank you Claudio, here is the link:
 * [https://shop.suttoncoldfieldhypnotherapyclinic.com/php-version.php](https://shop.suttoncoldfieldhypnotherapyclinic.com/php-version.php)
 *  Plugin Contributor [Claudio Sanches](https://wordpress.org/support/users/claudiosanches/)
 * (@claudiosanches)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/automatically-populating-http_raw_post_data-is-deprecated/#post-6437377)
 * [⌊Screenshot from 2015 08 20 02 13 10⌉⌊Screenshot from 2015 08 20 02 13 10⌉[
 *  Thread Starter [philsalt](https://wordpress.org/support/users/philsalt/)
 * (@philsalt)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/automatically-populating-http_raw_post_data-is-deprecated/#post-6437382)
 * Sorry Claudio Sucuri Firewall blocks Brazilian traffic. Have removed block. Here
   also is snapshot [http://snag.gy/BqG5J.jpg](http://snag.gy/BqG5J.jpg)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/automatically-populating-http_raw_post_data-is-deprecated/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/automatically-populating-http_raw_post_data-is-deprecated/page/2/?output_format=md)

The topic ‘Automatically populating $HTTP_RAW_POST_DATA is deprecated’ is closed
to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 18 replies
 * 3 participants
 * Last reply from: [Claudio Sanches](https://wordpress.org/support/users/claudiosanches/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/automatically-populating-http_raw_post_data-is-deprecated/page/2/#post-6437395)
 * Status: resolved