QQ扫一扫联系
上传图片的时候报错500.
系统 | ubuntu |
面板 | 1panel |
[2023-06-16 14:22:06] beta.ERROR: Intervention\Image\Exception\NotSupportedException: GD Library extension not available with this PHP installation. in /www/sites/sakura.data07.cn/index/vendor/intervention/image/src/Intervention/Image/Gd/Driver.php:19 Stack trace: #0 /www/sites/sakura.data07.cn/index/vendor/intervention/image/src/Intervention/Image/ImageManager.php(112): Intervention\Image\Gd\Driver->__construct() #1 /www/sites/sakura.data07.cn/index/vendor/intervention/image/src/Intervention/Image/ImageManager.php(54): Intervention\Image\ImageManager->createDriver() #2 /www/sites/sakura.data07.cn/index/vendor/intervention/image/src/Intervention/Image/ImageManagerStatic.php(58): Intervention\Image\ImageManager->make('data/image/2023...') #3 /www/sites/sakura.data07.cn/index/vendor/modstart/modstart/src/Core/Util/ImageUtil.php(26): Intervention\Image\ImageManagerStatic::make('data/image/2023...') #4 /www/sites/sakura.data07.cn/index/vendor/modstart/modstart/src/Data/FileManager.php(107): ModStart\Core\Util\ImageUtil::limitSizeAndDetectOrientation('data/image/2023...', 9999, 9999) #5 /www/sites/sakura.data07.cn/index/vendor/modstart/modstart/src/Data/FileManager.php(232): ModStart\Data\FileManager::saveToUser(Array, 'image', 0, 'admin_upload', 1) #6 /www/sites/sakura.data07.cn/index/vendor/modstart/modstart/src/Data/FileManager.php(65): ModStart\Data\FileManager::saveExecute(Object(ModStart\Core\Input\InputPackage), 'image', 'admin_upload', 'admin_upload_ca...', 1, NULL) #7 /www/sites/sakura.data07.cn/index/vendor/modstart/modstart/src/Admin/Controller/DataController.php(57): ModStart\Data\FileManager::handle('image', 'admin_upload', 'admin_upload_ca...', 1, NULL, Object(Closure)) #8 [internal function]: ModStart\Admin\Controller\DataController->fileManager('image') #9 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(256): call_user_func_array(Array, Array) #10 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(164): Illuminate\Routing\Controller->callAction('fileManager', Array) #11 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(112): Illuminate\Routing\ControllerDispatcher->call(Object(ModStart\Admin\Controller\DataController), Object(Illuminate\Routing\Route), 'fileManager') #12 [internal function]: Illuminate\Routing\ControllerDispatcher->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request)) #13 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request)) #14 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #15 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request)) #16 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(114): Illuminate\Pipeline\Pipeline->then(Object(Closure)) #17 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(68): Illuminate\Routing\ControllerDispatcher->callWithinStack(Object(ModStart\Admin\Controller\DataController), Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), 'fileManager') #18 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Routing/Route.php(203): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request), '\\ModStart\\Admin...', 'fileManager') #19 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Routing/Route.php(134): Illuminate\Routing\Route->runWithCustomDispatcher(Object(Illuminate\Http\Request)) #20 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Routing/Router.php(708): Illuminate\Routing\Route->run(Object(Illuminate\Http\Request)) #21 [internal function]: Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request)) #22 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request)) #23 /www/sites/sakura.data07.cn/index/vendor/modstart/modstart/src/Admin/Middleware/AuthMiddleware.php(238): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #24 [internal function]: ModStart\Admin\Middleware\AuthMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure)) #25 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array) #26 /www/sites/sakura.data07.cn/index/vendor/modstart/modstart/src/Admin/Middleware/BootstrapMiddleware.php(23): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #27 [internal function]: ModStart\Admin\Middleware\BootstrapMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure)) #28 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array) #29 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #30 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request)) #31 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Routing/Router.php(710): Illuminate\Pipeline\Pipeline->then(Object(Closure)) #32 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Routing/Router.php(674): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request)) #33 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Routing/Router.php(635): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request)) #34 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(236): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request)) #35 [internal function]: Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request)) #36 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request)) #37 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(62): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #38 [internal function]: Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure)) #39 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array) #40 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #41 [internal function]: Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure)) #42 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array) #43 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(59): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #44 [internal function]: Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure)) #45 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array) #46 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(44): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #47 [internal function]: Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure)) #48 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(124): call_user_func_array(Array, Array) #49 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #50 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): call_user_func(Object(Closure), Object(Illuminate\Http\Request)) #51 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(122): Illuminate\Pipeline\Pipeline->then(Object(Closure)) #52 /www/sites/sakura.data07.cn/index/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(87): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request)) #53 /www/sites/sakura.data07.cn/index/public/index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request)) #54 {main}
安装一下 gd 库。
感谢官方!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!