Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Couldn't upload media file on php 5.6 if not config php.ini with always_populate_raw_post_data = -1 #1104
I'm using DokuWiki Release 2014-09-29d "Hrun". I upgraded my box to php 5.6
# php -v PHP 5.6.7-1+deb.sury.org~utopic+1 (cli) (built: Mar 24 2015 11:23:10) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies
Everything work fine except Upload in Media Manager. When I upload something it always shown Failed so I looked at my apache error log and found this
So I went to php.ini and add variable as it suggested then everything working again.
I'm not sure this should fix or not but since this php.ini is default that comes with php package and I see warning message about PHP Deprecated so I think I should open this issue to let you know.
The first message isn't fatal. The second message implies you
Try turning display_errors off and leaving the other setting at the default.
This issue should remain open as we will need to respond to the
Hmm, I can't find any references to
The error message states it occurred in
Reading the piwik ticket thread explained what exactly is going wrong here. There's also a nice blog post at 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/