php artisan config 上的 Laravel 5:清除生成的 Closure::__set_state() 错误
问题说明
我的代码在生产环境中运行
My code in on production and I ran
php artisan config:clear
在那之后,我的代码没有运行.索引页面和所有其他页面都出现白屏,并在 firebug 中给出 500 内部服务器错误.当我尝试运行
After that, my code was not running. The index pages and all other pages went white screen and gave 500 internal server error in firebug. When I tried to run
php artisan
它给了我错误
PHP Fatal error: Call to undefined method Closure::__set_state() in /var/www/live/vendor/config.php on line 56
我的代码正在生产中!!/vendor/config.php 文件以前不存在,那个代码发生了什么?你遇到过这样的错误吗?我已授予存储/文件夹和供应商/的所有权限.任何帮助/指南将不胜感激.
My code is in production!! /vendor/config.php file was not present before, what happened with that code?? Have you faced any such error? I had given all permissions to storage/ folder and vendor/. Any help/guide would be much appreciated.
正确答案
我以前也遇到过类似的问题,不知道是什么原因造成的,但现在你可以删除 config.php
来自 /vendor
它不会破坏你的代码.
I had faced the similar issue in past don't know what caused it but as of now you can delete the config.php
from /vendor
it won't break your code.
您的代码将开始工作..
And your code will be start working..
这篇好文章是转载于:学新通技术网
- 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
- 本站站名: 学新通技术网
- 本文地址: /reply/detail/tangicabf
-
YouTube API 不能在 iOS (iPhone/iPad) 工作,但在桌面浏览器工作正常?
it1352 07-30 -
iPhone,一张图像叠加到另一张图像上以创建要保存的新图像?(水印)
it1352 07-17 -
保持在后台运行的 iPhone 应用程序完全可操作
it1352 07-25 -
使用 iPhone 进行移动设备管理
it1352 07-23 -
在android同时打开手电筒和前置摄像头
it1352 09-28 -
检查邮件是否发送成功
it1352 07-25 -
扫描 NFC 标签时是否可以启动应用程序?
it1352 08-02 -
Android微调工具-删除当前选择
it1352 06-20 -
希伯来语的空格句子标记化错误
it1352 06-22 -
Android App 和三星 Galaxy S4 不兼容
it1352 07-20