Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Using PHP 5.6.2 on MAMP. I upgraded Laravel from 4.1 to 4.2, after fixing some errors and changes as described in Laravel's upgrade docs, I finally get this error:

"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."

Why is that? Where should I change any code? I am not using $HTTP_RAW_POST_DATA anywhere in my code.

I also changed my php.ini as stated, same error... How can I solve this?

share|improve this question
    
Maybe laravel uses it? –  Daan Nov 24 '14 at 14:58
    
And? What should I do about it? I just updated. Docs say "Laravel 4.2 requires PHP 5.4.0 or greater." –  Indianer Nov 24 '14 at 14:58
1  
Did you restart Apache/PHP after changing it in php.ini ? Are you sure you updated the right php.ini ? (See the used path with phpinfo()). I never used Laravel but you shouldn't have to fix the code in the Framework source, if the $HTTP_RAW_POST_DATA comes from Laravel. –  caCtus Nov 24 '14 at 15:00
    
yes I restarted and changed the correct ini –  Indianer Nov 24 '14 at 15:00
1  
Thank you very much both of you. I double checked and made a mistake in my php.ini. Now it works! –  Indianer Nov 24 '14 at 15:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.