問題描述
我的代碼在生產(chǎn)環(huán)境中運行
My code in on production and I ran
php artisan config:clear
在那之后,我的代碼沒有運行.索引頁面和所有其他頁面都出現(xiàn)白屏,并在 firebug 中給出 500 內(nèi)部服務(wù)器錯誤.當(dāng)我嘗試運行
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
我的代碼正在生產(chǎn)中!!/vendor/config.php 文件以前不存在,那個代碼發(fā)生了什么?你遇到過這樣的錯誤嗎?我已授予存儲/文件夾和供應(yīng)商/的所有權(quán)限.任何幫助/指南將不勝感激.
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.
推薦答案
我以前也遇到過類似的問題,不知道是什么原因造成的,但現(xiàn)在你可以刪除 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..
這篇關(guān)于php artisan config 上的 Laravel 5:清除生成的 Closure::__set_state() 錯誤的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!