Filesystem.php中的ErrorException [英] ErrorException in Filesystem.php
本文介绍了Filesystem.php中的ErrorException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
会话存储问题
会话存储不能与我的Laravel 5一起使用.使用了一个月没有出现问题.但是自从最新上传到Web服务器以来,我在每个页面上都收到以下响应.
Session storage not working with my Laravel 5. Used it for a month without problems. But since latest upload to web server I get the following response on every page.
ErrorException in Filesystem.php line 74:
file_put_contents(): Exclusive locks are not supported for this stream
互联网上的许多帖子都表示要删除对
Many posts on the internet are indicating to remove the reference to
$lock on line 74 in Filesystem.php
似乎是一种快速修复方法,它将导致其他问题……
Seems like a quick fix which will lead to other issues down the road...
如何处理根本原因?
参考
https://stackoverflow.com/questions/29023948/laravel-5-file-put-contents-exclusive-locks-not-supported-for-this-stre https://laracasts.com/discuss/channels/general-discussion /l5-new-install-error
推荐答案
更新后执行
chmod -R gu+w storage
chmod -R guo+w storage
php artisan cache:clear
这篇关于Filesystem.php中的ErrorException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文