我昨天刚装的,也遇到这个问题,开启调试模式后,日志如下。ε=(´ο`*)))唉
`POST https://forum.illusbank.com/api/favicon
TypeError: Return value of Flarum\Api\Controller\UploadFaviconController::makeImage() must be an instance of Intervention\Image\Image, instance of Laminas\Diactoros\Stream returned in /data/wwwroot/forum.illusbank.com/vendor/flarum/core/src/Api/Controller/UploadFaviconController.php:42
Stack trace:
#0 /data/wwwroot/forum.illusbank.com/vendor/flarum/core/src/Api/Controller/UploadImageController.php(67): Flarum\Api\Controller\UploadFaviconController->makeImage()
#1 /data/wwwroot/forum.illusbank.com/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(115): Flarum\Api\Controller\UploadImageController->data()
#2 /data/wwwroot/forum.illusbank.com/vendor/flarum/core/src/Http/RouteHandlerFactory.php(38): Flarum\Api\Controller\AbstractSerializeController->handle()
#3 /data/wwwroot/forum.illusbank.com/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http{closure}()
#4 /data/wwwroot/forum.illusbank.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ExecuteRoute->process()
#5 /data/wwwroot/forum.illusbank.com/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(33): Laminas\Stratigility\Next->handle()
#6 /data/wwwroot/forum.illusbank.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Api\Middleware\ThrottleApi->process()
#7 /data/wwwroot/forum.illusbank.com/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(48): Laminas\Stratigility\Next->handle()
#8 /data/wwwroot/forum.illusbank.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\CheckCsrfToken->process()
#9 /data/wwwroot/forum.illusbank.com/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(67): Laminas\Stratigility\Next->handle()
#10 /data/wwwroot/forum.illusbank.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ResolveRoute->process()
#11 /data/wwwroot/forum.illusbank.com/vendor/flarum/core/src/Http/Middleware/SetLocale.php(50): Laminas\Stratigility\Next->handle()
#12 /data/wwwroot/forum.illusbank.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\SetLocale->process()
#13 /data/wwwroot/forum.illusbank.com/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(55): Laminas\Stratigility\Next->handle()
#14 /data/wwwroot/forum.illusbank.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\AuthenticateWithHeader->process()
#15 /data/wwwroot/forum.illusbank.com/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(32): Laminas\Stratigility\Next->handle()
#16 /data/wwwroot/forum.illusbank.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\AuthenticateWithSession->process()
#17 /data/wwwroot/forum.illusbank.com/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(51): Laminas\Stratigility\Next->handle()
#18 /data/wwwroot/forum.illusbank.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\RememberFromCookie->process()
#19 /data/wwwroot/forum.illusbank.com/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle()
#20 /data/wwwroot/forum.illusbank.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\StartSession->process()
#21 /data/wwwroot/forum.illusbank.com/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\Stratigility\Next->handle()
#22 /data/wwwroot/forum.illusbank.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Api\Middleware\FakeHttpMethods->process()
#23 /data/wwwroot/forum.illusbank.com/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle()
#24 /data/wwwroot/forum.illusbank.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\ParseJsonBody->process()
#25 /data/wwwroot/forum.illusbank.com/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()
#26 /data/wwwroot/forum.illusbank.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Flarum\Http\Middleware\HandleErrors->process()
#27 /data/wwwroot/forum.illusbank.com/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle()
#28 /data/wwwroot/forum.illusbank.com/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process()
#29 /data/wwwroot/forum.illusbank.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\RequestHandler->process()
#30 /data/wwwroot/forum.illusbank.com/vendor/middlewares/base-path-router/src/BasePathRouter.php(97): Laminas\Stratigility\Next->handle()
#31 /data/wwwroot/forum.illusbank.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePathRouter->process()
#32 /data/wwwroot/forum.illusbank.com/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(42): Laminas\Stratigility\Next->handle()
#33 /data/wwwroot/forum.illusbank.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Laminas\Stratigility\Middleware\OriginalMessages->process()
#34 /data/wwwroot/forum.illusbank.com/vendor/middlewares/base-path/src/BasePath.php(53): Laminas\Stratigility\Next->handle()
#35 /data/wwwroot/forum.illusbank.com/vendor/laminas/laminas-stratigility/src/Next.php(61): Middlewares\BasePath->process()
#36 /data/wwwroot/forum.illusbank.com/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(84): Laminas\Stratigility\Next->handle()
#37 /data/wwwroot/forum.illusbank.com/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(73): Laminas\Stratigility\MiddlewarePipe->process()
#38 /data/wwwroot/forum.illusbank.com/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle()
#39 /data/wwwroot/forum.illusbank.com/vendor/flarum/core/src/Http/Server.php(42): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#40 /data/wwwroot/forum.illusbank.com/public/index.php(26): Flarum\Http\Server->listen()
#41 {main}`