gpt4 book ai didi

php - Laravel/Illuminate fatal error

转载 作者:行者123 更新时间:2023-12-05 06:45:43 28 4
gpt4 key购买 nike

我有一个网络应用程序可以在我的本地计算机上运行,​​但不能在我的服务器上运行。我在服务器上收到此错误。我检查了错误提到的代码,没有任何问题。

你知道是什么原因造成的吗?

非常感谢您。

这是我的错误信息:

Fatal error: Interface 'Illuminate\Exception\ExceptionDisplayerInterface' not found in /var/www/test-app.domain.com/public_html/vendor/laravel/framework/src/Illuminate/Exception/SymfonyDisplayer.php on line 6

这是 SymphonyDisplayer.php 的第 6 行:

class SymfonyDisplayer implements ExceptionDisplayerInterface {

它说没有ExceptionDisplayerInterface。但是,它就在这个文件的旁边,在同一个目录中。 ExceptionDisplayerInterface.php 位于 Exception 文件夹中,包含 SymphonyDisplayer.php

这是我的 composer install 输出:

>>composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

Problem 1
- jeremeamia/SuperClosure 1.0.1 requires nikic/php-parser ~0.9 -> no matching package found.
- jeremeamia/SuperClosure 1.0.1 requires nikic/php-parser ~0.9 -> no matching package found.
- Installation request for jeremeamia/superclosure 1.0.1 -> satisfiable by jeremeamia/SuperClosure[1.0.1].

Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

这是执行 composer update 后的新错误:

Fatal error: Interface 'Whoops\Handler\HandlerInterface' not found in /var/www/test-app.domain.com/public_html/vendor/filp/whoops/src/Whoops/Handler/Handler.php on line 17

在尝试找出问题时,这里有一些更多的输出:

>>composer diagnose
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity: OK
Checking composer.json: OK
Checking disk free space: OK
Checking composer version: OK
>>composer self-update
You are already using composer version 0d4c2bb7d7a864a9b3e876908e743310cdeaa5e6.

最佳答案

呸。我修好了它。

这是我的做法,如果其他人看到此类错误消息:

rm -rf vendor && composer update -v

我想我昨天在用 SFTP 做一些事情时,我的 vendor 目录出了问题。

谢谢大家。

关于php - Laravel/Illuminate fatal error ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22088751/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com