我正在尝试从 5.2 升级 laravel 5.3,但我不断在日志文件中看到这两个错误:
Symfony\Component\Debug\Exception\FatalErrorException: Uncaught Error: Call to undefined method Illuminate\Auth\Access\Gate::abilities() in /Users/rohan0793/Code/poptin_v3/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:237
和这个:
Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Illuminate\Log\Writer::setHandlers() in Command line code:1
全栈输出:
[2020-08-13 08:26:58] local.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Uncaught Error: Call to undefined method Illuminate\Auth\Access\Gate::abilities() in /Users/rohan0793/Code/poptin_v3/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:237
Stack trace:
#0 Command line code(1): Illuminate\Support\Facades\Facade::__callStatic('abilities', Array)
#1 {main}
thrown in /Users/rohan0793/Code/poptin_v3/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:237
[2020-08-13 08:26:58] local.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined method Illuminate\Log\Writer::setHandlers() in Command line code:1
Stack trace:
我不知道这些来自哪里以及如何解决它们。
更新:我每分钟 41 秒都会看到这些错误。示例13:35:41 但是根据我在 homestead 的 crontab,我没有安排任何 crons
更新 2: https: //github.com/Illuminate/auth/blob/5.5/Access/Gate.php 5.5 中提供了能力方法。但我还是5.3。很奇怪,但我不知道是什么在调用该代码。也许是第三方包。
qq_花开花谢_0
扬帆大鱼