Symfony 3.1.5 Warning: SessionHandler::read(): Session data file is not created by your uid

前端 未结 11 1622
别跟我提以往
别跟我提以往 2020-12-05 04:36

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

相关标签:
11条回答
  • 2020-12-05 05:23

    In my case, i was using sysfony 2 and after removing the cache the problem was gone.

    rm -rf /app/cache/*
    
    0 讨论(0)
  • 2020-12-05 05:24

    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.

    0 讨论(0)
  • 2020-12-05 05:26

    You are using wrong Response namespace.

    You have use Symfony\Component\BrowserKit\Response; and should be use Symfony\Component\HttpFoundation\Response;

    0 讨论(0)
  • 2020-12-05 05:27

    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/
    
    0 讨论(0)
  • 2020-12-05 05:32

    I am using PIMCORE which is based on symfony 3. To fix this issue,I just cleared browser cache.

    I hope this will help.

    0 讨论(0)
提交回复
热议问题