Today when I want to send some data via axios Vuejs plugin, php throws this error:
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
Warning: Cannot modify header information - headers already sent in Unknown on line 0
After googling and searching for solution I found that , I can uncomment and change the value of always_populate_raw_post_data
to -1 can solve the problem. But that could not solve problem and it is continued.
I used phpinfo()
to detect real php.ini
file and sure that I changed it properly.
I'm using php 5.6.25 and wamp 3.0.6 64bit on windows 8.