-
-
Notifications
You must be signed in to change notification settings - Fork 850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couldn't upload media file on php 5.6 if not config php.ini with always_populate_raw_post_data = -1 #1104
Comments
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 |
better about this issue is here: matomo-org/matomo#6465 |
@splitbrain No I didn't have auto_prepend_file. This is just default php5-fpm configuration |
The link of @kraag22 explains that this is caused by a not handy default setting of php for always_populate_raw_post_data. PHP should improve this... As workaround piwik add an check that give admins feedback about the right setting. |
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/ To summarize:
|
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 text was updated successfully, but these errors were encountered: