提问前请务必仔细阅读如何排查故障和常见问题。
问题描述:
某日我在测试我论坛的上传功能时,发现一直提示500错误。开启调试模式后发现提示exit插件没开,可是我一直都是开着exif插件的啊
报错内容:
调试模式报错内容:
POST https://zerohikari.cn/api/fof/upload
Intervention\Image\Exception\NotSupportedException: Reading Exif data is not supported by this PHP installation. in /www/wwwroot/zerohikari.cn/vendor/intervention/image/src/Intervention/Image/Commands/ExifCommand.php:22
Stack trace:
#0 /www/wwwroot/zerohikari.cn/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php(94): Intervention\Image\Commands\ExifCommand->execute()
#1 /www/wwwroot/zerohikari.cn/vendor/intervention/image/src/Intervention/Image/Image.php(108): Intervention\Image\AbstractDriver->executeCommand()
#2 /www/wwwroot/zerohikari.cn/vendor/intervention/image/src/Intervention/Image/Commands/OrientateCommand.php(15): Intervention\Image\Image->call()
#3 /www/wwwroot/zerohikari.cn/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php(94): Intervention\Image\Commands\OrientateCommand->execute()
#4 /www/wwwroot/zerohikari.cn/vendor/intervention/image/src/Intervention/Image/Image.php(108): Intervention\Image\AbstractDriver->executeCommand()
#5 /www/wwwroot/zerohikari.cn/vendor/fof/upload/src/Processors/ImageProcessor.php(69): Intervention\Image\Image->call()
#6 /www/wwwroot/zerohikari.cn/vendor/fof/upload/src/Listeners/AddImageProcessor.php(33): FoF\Upload\Processors\ImageProcessor->process()
#7 /www/wwwroot/zerohikari.cn/vendor/illuminate/events/Dispatcher.php(424): FoF\Upload\Listeners\AddImageProcessor->handle()
#8 /www/wwwroot/zerohikari.cn/vendor/illuminate/events/Dispatcher.php(249): Illuminate\Events\Dispatcher->Illuminate\Events{closure}()
#9 /www/wwwroot/zerohikari.cn/vendor/fof/upload/src/Commands/UploadHandler.php(128): Illuminate\Events\Dispatcher->dispatch()
#10 [internal function]: FoF\Upload\Commands\UploadHandler->FoF\Upload\Commands{closure}()
#11 /www/wwwroot/zerohikari.cn/vendor/illuminate/collections/Collection.php(695): array_map()
#12 /www/wwwroot/zerohikari.cn/vendor/fof/upload/src/Commands/UploadHandler.php(169): Illuminate\Support\Collection->map()
#13 /www/wwwroot/zerohikari.cn/vendor/illuminate/bus/Dispatcher.php(122): FoF\Upload\Commands\UploadHandler->handle()
#14 /www/wwwroot/zerohikari.cn/vendor/illuminate/pipeline/Pipeline.php(128): Illuminate\Bus\Dispatcher->Illuminate\Bus{closure}()
#15 /www/wwwroot/zerohikari.cn/vendor/illuminate/pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#16 /www/wwwroot/zerohikari.cn/vendor/illuminate/bus/Dispatcher.php(132): Illuminate\Pipeline\Pipeline->then()
#17 /www/wwwroot/zerohikari.cn/vendor/illuminate/bus/Dispatcher.php(78): Illuminate\Bus\Dispatcher->dispatchNow()
#18 /www/wwwroot/zerohikari.cn/vendor/fof/upload/src/Api/Controllers/UploadController.php(52): Illuminate\Bus\Dispatcher->dispatch()
#19 /www/wwwroot/zerohikari.cn/vendor/flarum/core/src/Api/Controller/AbstractSerializeController.php(115): FoF\Upload\Api\Controllers\UploadController->data()
#20 /www/wwwroot/zerohikari.cn/vendor/flarum/core/src/Http/RouteHandlerFactory.php(41): Flarum\Api\Controller\AbstractSerializeController->handle()
#21 /www/wwwroot/zerohikari.cn/vendor/flarum/core/src/Http/Middleware/ExecuteRoute.php(27): Flarum\Http\RouteHandlerFactory->Flarum\Http{closure}()
#22 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ExecuteRoute->process()
#23 /www/wwwroot/zerohikari.cn/vendor/malago/flarum-achievements/src/Middlewares/MiddlewarePosted.php(27): Laminas\Stratigility\Next->handle()
#24 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/Next.php(51): Malago\Achievements\Middlewares\MiddlewarePosted->process()
#25 /www/wwwroot/zerohikari.cn/vendor/flarum/core/src/Api/Middleware/ThrottleApi.php(33): Laminas\Stratigility\Next->handle()
#26 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Api\Middleware\ThrottleApi->process()
#27 /www/wwwroot/zerohikari.cn/vendor/flarum/core/src/Http/Middleware/CheckCsrfToken.php(44): Laminas\Stratigility\Next->handle()
#28 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\CheckCsrfToken->process()
#29 /www/wwwroot/zerohikari.cn/vendor/flarum/core/src/Http/Middleware/ResolveRoute.php(67): Laminas\Stratigility\Next->handle()
#30 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ResolveRoute->process()
#31 /www/wwwroot/zerohikari.cn/vendor/flarum/core/src/Http/Middleware/SetLocale.php(51): Laminas\Stratigility\Next->handle()
#32 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\SetLocale->process()
#33 /www/wwwroot/zerohikari.cn/vendor/flarum/core/src/Http/Middleware/AuthenticateWithHeader.php(58): Laminas\Stratigility\Next->handle()
#34 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\AuthenticateWithHeader->process()
#35 /www/wwwroot/zerohikari.cn/vendor/flarum/core/src/Http/Middleware/AuthenticateWithSession.php(31): Laminas\Stratigility\Next->handle()
#36 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\AuthenticateWithSession->process()
#37 /www/wwwroot/zerohikari.cn/vendor/flarum/core/src/Http/Middleware/RememberFromCookie.php(52): Laminas\Stratigility\Next->handle()
#38 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\RememberFromCookie->process()
#39 /www/wwwroot/zerohikari.cn/vendor/flarum/core/src/Http/Middleware/StartSession.php(61): Laminas\Stratigility\Next->handle()
#40 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\StartSession->process()
#41 /www/wwwroot/zerohikari.cn/vendor/flarum/core/src/Api/Middleware/FakeHttpMethods.php(29): Laminas\Stratigility\Next->handle()
#42 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Api\Middleware\FakeHttpMethods->process()
#43 /www/wwwroot/zerohikari.cn/vendor/flarum/core/src/Http/Middleware/ParseJsonBody.php(28): Laminas\Stratigility\Next->handle()
#44 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ParseJsonBody->process()
#45 /www/wwwroot/zerohikari.cn/vendor/flarum/core/src/Http/Middleware/HandleErrors.php(57): Laminas\Stratigility\Next->handle()
#46 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\HandleErrors->process()
#47 /www/wwwroot/zerohikari.cn/vendor/flarum/core/src/Http/Middleware/InjectActorReference.php(25): Laminas\Stratigility\Next->handle()
#48 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\InjectActorReference->process()
#49 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(76): Laminas\Stratigility\Next->handle()
#50 /www/wwwroot/zerohikari.cn/vendor/middlewares/request-handler/src/RequestHandler.php(84): Laminas\Stratigility\MiddlewarePipe->process()
#51 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\RequestHandler->process()
#52 /www/wwwroot/zerohikari.cn/vendor/middlewares/base-path-router/src/BasePathRouter.php(101): Laminas\Stratigility\Next->handle()
#53 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\BasePathRouter->process()
#54 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/Middleware/OriginalMessages.php(36): Laminas\Stratigility\Next->handle()
#55 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/Next.php(51): Laminas\Stratigility\Middleware\OriginalMessages->process()
#56 /www/wwwroot/zerohikari.cn/vendor/middlewares/base-path/src/BasePath.php(73): Laminas\Stratigility\Next->handle()
#57 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/Next.php(51): Middlewares\BasePath->process()
#58 /www/wwwroot/zerohikari.cn/vendor/flarum/core/src/Http/Middleware/ProcessIp.php(24): Laminas\Stratigility\Next->handle()
#59 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/Next.php(51): Flarum\Http\Middleware\ProcessIp->process()
#60 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(76): Laminas\Stratigility\Next->handle()
#61 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-stratigility/src/MiddlewarePipe.php(65): Laminas\Stratigility\MiddlewarePipe->process()
#62 /www/wwwroot/zerohikari.cn/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php(96): Laminas\Stratigility\MiddlewarePipe->handle()
#63 /www/wwwroot/zerohikari.cn/vendor/flarum/core/src/Http/Server.php(44): Laminas\HttpHandlerRunner\RequestHandlerRunner->run()
#64 /www/wwwroot/zerohikari.cn/public/index.php(26): Flarum\Http\Server->listen()
#65 {main}
已尝试的解决办法:
重载php配置,重装php,关闭宝塔防火墙