I\'m running Symfony 3.1.5 on a Ubuntu 14.04, PHP 7.1 and Apache 2.4.23 stack managed by Vagrant 1.8.6/VirtualBox 5.1.6. I\'m trying to use a simple controller I\'ve made to
In my case, i was using sysfony 2 and after removing the cache the problem was gone.
rm -rf /app/cache/*
In my case, *removing browser cookies fixed the issue. I didn't do any of the step mentioned above and tried to change permissions and all but no that wasn't the problem. I've faced problem on magento.
You are using wrong Response namespace.
You have use Symfony\Component\BrowserKit\Response;
and should be use Symfony\Component\HttpFoundation\Response;
I had the same problem. The fix that worked for me is to change var/sessions
owner to www-data:www-data
(same user/group for php-fpm sub-processes) :
sudo chown -R www-data:www-data var/sessions/
I am using PIMCORE which is based on symfony 3. To fix this issue,I just cleared browser cache.
I hope this will help.