A strange error after installing automatic image compressor in laravel

  image, laravel, php

I have installed compressor in my admin panel where I upload new products to the online store. I get this error when I now try to upload a new product to the website.
Im using Heroku, so from my understandig I should always have the latest PHP version. I may be wrong here, but cant find any information on how to update php on heroku.
Hope someone has time to look at the error message. Thanks

InterventionImageExceptionNotSupportedException: GD Library extension not available with this PHP installation. in /app/vendor/intervention/image/src/Intervention/Image/Gd/Driver.php:19 Stack trace: #0 /app/vendor/intervention/image/src/Intervention/Image/ImageManager.php(112): InterventionImageGdDriver->__construct() #1 /app/vendor/intervention/image/src/Intervention/Image/ImageManager.php(54): InterventionImageImageManager->createDriver() #2 /app/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(261): InterventionImageImageManager->make('/tmp/phpTmFOQA') #3 /app/app/Http/Controllers/Backend/BoxController.php(74): IlluminateSupportFacadesFacade::__callStatic('make', Array) #4 /app/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): AppHttpControllersBackendBoxController->store(Object(IlluminateHttpRequest)) #5 /app/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): IlluminateRoutingController->callAction('store', Array) #6 /app/vendor/laravel/framework/src/Illuminate/Routing/Route.php(219): IlluminateRoutingControllerDispatcher->dispatch(Object(IlluminateRoutingRoute), Object(AppHttpControllersBackendBoxController), 'store') #7 /app/vendor/laravel/framework/src/Illuminate/Routing/Route.php(176): IlluminateRoutingRoute->runController() #8 /app/vendor/laravel/framework/src/Illuminate/Routing/Router.php(681): IlluminateRoutingRoute->run() #9 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(130): IlluminateRoutingRouter->IlluminateRouting{closure}(Object(IlluminateHttpRequest)) #10 /app/app/Http/Controllers/Backend/BoxController.php(25): IlluminatePipelinePipeline->IlluminatePipeline{closure}(Object(IlluminateHttpRequest)) #11 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(153): AppHttpControllersBackendBoxController->AppHttpControllersBackend{closure}(Object(IlluminateHttpRequest), Object(Closure)) #12 /app/app/Http/Middleware/LinkClicked.php(40): IlluminatePipelinePipeline->IlluminatePipeline{closure}(Object(IlluminateHttpRequest)) #13 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): AppHttpMiddlewareLinkClicked->handle(Object(IlluminateHttpRequest), Object(Closure)) #14 /app/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): IlluminatePipelinePipeline->IlluminatePipeline{closure}(Object(IlluminateHttpRequest)) #15 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): IlluminateRoutingMiddlewareSubstituteBindings->handle(Object(IlluminateHttpRequest), Object(Closure)) #16 /app/app/Http/Middleware/Authenticate.php(42): IlluminatePipelinePipeline->IlluminatePipeline{closure}(Object(IlluminateHttpRequest)) #17 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): AppHttpMiddlewareAuthenticate->handle(Object(IlluminateHttpRequest), Object(Closure)) #18 /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): IlluminatePipelinePipeline->IlluminatePipeline{closure}(Object(IlluminateHttpRequest)) #19 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): IlluminateFoundationHttpMiddlewareVerifyCsrfToken->handle(Object(IlluminateHttpRequest), Object(Closure)) #20 /app/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): IlluminatePipelinePipeline->IlluminatePipeline{closure}(Object(IlluminateHttpRequest)) #21 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): IlluminateViewMiddlewareShareErrorsFromSession->handle(Object(IlluminateHttpRequest), Object(Closure)) #22 /app/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(56): IlluminatePipelinePipeline->IlluminatePipeline{closure}(Object(IlluminateHttpRequest)) #23 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): IlluminateSessionMiddlewareStartSession->handle(Object(IlluminateHttpRequest), Object(Closure)) #24 /app/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): IlluminatePipelinePipeline->IlluminatePipeline{closure}(Object(IlluminateHttpRequest)) #25 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): IlluminateCookieMiddlewareAddQueuedCookiesToResponse->handle(Object(IlluminateHttpRequest), Object(Closure)) #26 /app/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): IlluminatePipelinePipeline->IlluminatePipeline{closure}(Object(IlluminateHttpRequest)) #27 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): IlluminateCookieMiddlewareEncryptCookies->handle(Object(IlluminateHttpRequest), Object(Closure)) #28 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(105): IlluminatePipelinePipeline->IlluminatePipeline{closure}(Object(IlluminateHttpRequest)) #29 /app/vendor/laravel/framework/src/Illuminate/Routing/Router.php(683): IlluminatePipelinePipeline->then(Object(Closure)) #30 /app/vendor/laravel/framework/src/Illuminate/Routing/Router.php(658): IlluminateRoutingRouter->runRouteWithinStack(Object(IlluminateRoutingRoute), Object(IlluminateHttpRequest)) #31 /app/vendor/laravel/framework/src/Illuminate/Routing/Router.php(624): IlluminateRoutingRouter->runRoute(Object(IlluminateHttpRequest), Object(IlluminateRoutingRoute)) #32 /app/vendor/laravel/framework/src/Illuminate/Routing/Router.php(613): IlluminateRoutingRouter->dispatchToRoute(Object(IlluminateHttpRequest)) #33 /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(170): IlluminateRoutingRouter->dispatch(Object(IlluminateHttpRequest)) #34 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(130): IlluminateFoundationHttpKernel->IlluminateFoundationHttp{closure}(Object(IlluminateHttpRequest)) #35 /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): IlluminatePipelinePipeline->IlluminatePipeline{closure}(Object(IlluminateHttpRequest)) #36 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): IlluminateFoundationHttpMiddlewareTransformsRequest->handle(Object(IlluminateHttpRequest), Object(Closure)) #37 /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): IlluminatePipelinePipeline->IlluminatePipeline{closure}(Object(IlluminateHttpRequest)) #38 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): IlluminateFoundationHttpMiddlewareTransformsRequest->handle(Object(IlluminateHttpRequest), Object(Closure)) #39 /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): IlluminatePipelinePipeline->IlluminatePipeline{closure}(Object(IlluminateHttpRequest)) #40 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): IlluminateFoundationHttpMiddlewareValidatePostSize->handle(Object(IlluminateHttpRequest), Object(Closure)) #41 /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(63): IlluminatePipelinePipeline->IlluminatePipeline{closure}(Object(IlluminateHttpRequest)) #42 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): IlluminateFoundationHttpMiddlewareCheckForMaintenanceMode->handle(Object(IlluminateHttpRequest), Object(Closure)) #43 /app/vendor/fideloper/proxy/src/TrustProxies.php(57): IlluminatePipelinePipeline->IlluminatePipeline{closure}(Object(IlluminateHttpRequest)) #44 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): FideloperProxyTrustProxies->handle(Object(IlluminateHttpRequest), Object(Closure)) #45 /app/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(105): IlluminatePipelinePipeline->IlluminatePipeline{closure}(Object(IlluminateHttpRequest)) #46 /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(145): IlluminatePipelinePipeline->then(Object(Closure)) #47 /app/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): IlluminateFoundationHttpKernel->sendRequestThroughRouter(Object(IlluminateHttpRequest)) #48 /app/public/index.php(55): IlluminateFoundationHttpKernel->handle(Object(IlluminateHttpRequest)) #49 {main}

Source: Laravel

Leave a Reply