Laravel 5在php artisan config:clear生成的Closure :: __ set_state()错误 [英] Laravel 5 on php artisan config:clear generated Closure::__set_state() error

查看:222
本文介绍了Laravel 5在php artisan config:clear生成的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.

推荐答案

我过去曾遇到过类似的问题,不知道是什么原因引起的,但是到目前为止,您可以从/vendor中删除config.php,它将不会.不要破坏您的代码.

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..

这篇关于Laravel 5在php artisan config:clear生成的Closure :: __ set_state()错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆