AbanteCart Community
AbanteCart Development => Development Help Needed => Topic started by: ehon on June 14, 2016, 07:54:25 AM
-
I get this message these days.
"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
{"success":true} "
I checked my php.ini file, but I don't know what I should do...
My php.ini file is
;Use this file for specific PHP settings on your server required for AbanteCart.
output_buffering = 4096;
magic_quotes_gpc = Off;
register_globals = Off;
default_charset = UTF-8;
memory_limit = 128M;
max_execution_time = 18000;
upload_max_filesize = 100M;
safe_mode = Off;
mysql.connect_timeout = 20;
session.use_cookies = On;
session.use_trans_sid = Off;
session.gc_maxlifetime = 12000000;
apc.enabled = 0;
The file type said "UNKNOWN file", so I believe I need to rename it. What file name I should use it?
Thank you for reading my message and I hope I can fix the problem soon!
-
What version of AbanteCart do you have? There is no HTTP_RAW_POST_DATA in AbanteCart 1.2.7
If this is for older versions or other PHP, just add below line to you php.ini file
always_populate_raw_post_data=-1
-
Thank you for your reply.
I upgraded to 1.2.7 by manually. I'm not sure it is done or still I'm 1.2.6...
I did what I need to do for the upgrade, (I follow the manual step by step) and I don't see any error message except the one I posted.
So if I get this message now,does it mean my upgrade was failed?
-
I added the line in php.ini, but I still get same message...
-
$HTTP_RAW_POST_DATA used by some extension.
Should to replace it with this
file_get_contents("php://input");
-
Thank you for your advice.
My host server helped me to fix the problem, and now error is gone.