php artisan config 上的 Laravel 5:清除生成的 Closure::__set_state()

Laravel 5 on php artisan config:clear generated Closure::__set_state() error(php artisan config 上的 Laravel 5:清除生成的 Closure::__set_state() 错误)
本文介绍了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..

这篇关于php artisan config 上的 Laravel 5:清除生成的 Closure::__set_state() 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)