【发布时间】:2015-05-24 01:27:37
【问题描述】:
会话存储问题
会话存储不适用于我的 Laravel 5。使用了一个月没有问题。但是自从最新上传到网络服务器后,我在每个页面上都会收到以下响应。
ErrorException in Filesystem.php line 74:
file_put_contents(): Exclusive locks are not supported for this stream
网上很多帖子都表示要删除对
的引用$lock on line 74 in Filesystem.php
似乎是一个快速解决方案,但会导致其他问题......
如何解决根本原因?
参考文献
https://stackoverflow.com/questions/29023948/laravel-5-file-put-contents-exclusive-locks-are-not-supported-for-this-stre https://laracasts.com/discuss/channels/general-discussion/l5-new-install-error
【问题讨论】:
-
等等,您将会话数据放在云文件系统上?坏主意。
-
我今天在使用 4.2 时遇到了这个问题,并且您的快速修复已经奏效。同样,它以前可以工作,但是今天上传导致了这个问题。我很确定这是因为最近的(错误的)Laravel 更新,因为我在上周做了
composer update。
标签: php laravel session laravel-5