I believe I’ve seen this error before, I think it was fixed by the following
Open your php.ini and find
always_populate_raw_post_data make sure it’s set to -1 and that it’s not commented out (no
; before that line in php.ini)
Restart your web server after making this change.