0
votes

I have just deployed a website using Heroku and PostGres. I am able to upload to one form but not the others. Also works fine locally. Errors below:

Whoops, looks like something went wrong.

1/1 NotSupportedException in Driver.php line 16: GD Library extension not available with this PHP installation.
  • in Driver.php line 16
  • at Driver->__construct() in ImageManager.php line 108
  • at ImageManager->createDriver() in ImageManager.php line 50
  • at ImageManager->make('uploads/trucking/photos/1490198567-Screen Shot 2017-02-13 at 10.11.08 AM.png') in Facade.php line 217
  • at Facade::__callStatic('make', array('uploads/trucking/photos/1490198567-Screen Shot 2017-02-13 at 10.11.08 AM.png')) in Photo.php line 68
  • at Photo->makeThumbnail() in Photo.php line 61
  • at Photo->move(object(UploadedFile)) in TruckingDeliveryController.php line 228
  • at TruckingDeliveryController->makePhoto(object(UploadedFile)) in TruckingDeliveryController.php line 219
  • at TruckingDeliveryController->addPhoto('11', object(Request))
  • at call_user_func_array(array(object(TruckingDeliveryController), 'addPhoto'), array('id' => '11', object(Request))) in Controller.php line 80
  • at Controller->callAction('addPhoto', array('id' => '11', object(Request))) in ControllerDispatcher.php line 146
  • at ControllerDispatcher->call(object(TruckingDeliveryController), object(Route), 'addPhoto') in ControllerDispatcher.php line 94
  • at ControllerDispatcher->Illuminate\Routing{closure}(object(Request))
  • at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
  • at Pipeline->Illuminate\Routing{closure}(object(Request)) in Authenticate.php line 28
  • at Authenticate->handle(object(Request), object(Closure))
  • at call_user_func_array(array(object(Authenticate), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
  • at Pipeline->Illuminate\Pipeline{closure}(object(Request))
  • at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
  • at Pipeline->Illuminate\Routing{closure}(object(Request))
  • at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
  • at Pipeline->then(object(Closure)) in ControllerDispatcher.php line 96
  • at ControllerDispatcher->callWithinStack(object(TruckingDeliveryController), object(Route), object(Request), 'addPhoto') in ControllerDispatcher.php line 54
  • at ControllerDispatcher->dispatch(object(Route), object(Request), 'App\Http\Controllers\TruckingDeliveryController', 'addPhoto') in Route.php line 174
  • at Route->runController(object(Request)) in Route.php line 140
  • at Route->run(object(Request)) in Router.php line 724
  • at Router->Illuminate\Routing{closure}(object(Request))
  • at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
  • at Pipeline->Illuminate\Routing{closure}(object(Request)) in VerifyCsrfToken.php line 64
  • at VerifyCsrfToken->handle(object(Request), object(Closure))
  • at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
  • at Pipeline->Illuminate\Pipeline{closure}(object(Request))
  • at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
  • at Pipeline->Illuminate\Routing{closure}(object(Request)) in ShareErrorsFromSession.php line 49
  • at ShareErrorsFromSession->handle(object(Request), object(Closure))
  • at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
  • at Pipeline->Illuminate\Pipeline{closure}(object(Request))
  • at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
  • at Pipeline->Illuminate\Routing{closure}(object(Request)) in StartSession.php line 64
  • at StartSession->handle(object(Request), object(Closure))
  • at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
  • at Pipeline->Illuminate\Pipeline{closure}(object(Request))
  • at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
  • at Pipeline->Illuminate\Routing{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
  • at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
  • at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
  • at Pipeline->Illuminate\Pipeline{closure}(object(Request))
  • at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
  • at Pipeline->Illuminate\Routing{closure}(object(Request)) in EncryptCookies.php line 59
  • at EncryptCookies->handle(object(Request), object(Closure))
  • at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
  • at Pipeline->Illuminate\Pipeline{closure}(object(Request))
  • at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
  • at Pipeline->Illuminate\Routing{closure}(object(Request))
  • at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
  • at Pipeline->then(object(Closure)) in Router.php line 726
  • at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 699
  • at Router->dispatchToRoute(object(Request)) in Router.php line 675
  • at Router->dispatch(object(Request)) in Kernel.php line 246
  • at Kernel->Illuminate\Foundation\Http{closure}(object(Request))
  • at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
  • at Pipeline->Illuminate\Routing{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
  • at CheckForMaintenanceMode->handle(object(Request), object(Closure))
  • at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
  • at Pipeline->Illuminate\Pipeline{closure}(object(Request))
  • at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
  • at Pipeline->Illuminate\Routing{closure}(object(Request))
  • at call_user_func(object(Closure), object(Request)) in Pipeline.php line 102
  • at Pipeline->then(object(Closure)) in Kernel.php line 132
  • at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 99
  • at Kernel->handle(object(Request)) in index.php line 53
  • Any help is greatly appreciated. Thanks.

    1
    Nothing to do with dropzone at all. Your answer is clearly stated in the error. First line: GD Library extension not available with this PHP installation.Mike Barwick

    1 Answers

    2
    votes

    On heroku, you don't have the GD Library installed. This is not included by default (it appears - I don't use heroku).

    Ps: nothing to do with dropzone.

    In your composer.json add "ext-gd": "*":

    {
        "require": {
            ...
            "ext-gd": "*"
        }
    }
    

    Then re-build. Or push and recommit, etc. Or however it works on heroku. :)