Ask, reply and learn. Join the community of Akaunting.
Hi,
Running Version 2.0.22 on Ubuntu 18.04 with PHP 7.4. Was getting a 500 error when trying to upload PDF / PNG as attachment
I do have relevant php modules installed,... stracktrace below
Intervention\Image\Exception\NotReadableException:
Unsupported image type. GD driver is only able to decode JPG, PNG, GIF or WebP files.
at /sites/akaunting/docs/vendor/intervention/image/src/Intervention/Image/Gd/Decoder.php:59
at Intervention\Image\Gd\Decoder->initFromPath()
(/sites/akaunting/docs/vendor/intervention/image/src/Intervention/Image/AbstractDecoder.php:339)
at Intervention\Image\AbstractDecoder->init()
(/sites/akaunting/docs/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php:66)
at Intervention\Image\AbstractDriver->init()
(/sites/akaunting/docs/vendor/intervention/image/src/Intervention/Image/ImageManager.php:54)
at Intervention\Image\ImageManager->make()
at call_user_func_array()
(/sites/akaunting/docs/vendor/intervention/imagecache/src/Intervention/Image/ImageCache.php:251)
at Intervention\Image\ImageCache->processCall()
(/sites/akaunting/docs/vendor/intervention/imagecache/src/Intervention/Image/ImageCache.php:266)
at Intervention\Image\ImageCache->process()
(/sites/akaunting/docs/vendor/intervention/imagecache/src/Intervention/Image/ImageCache.php:309)
at Intervention\Image\ImageCache->get()
(/sites/akaunting/docs/vendor/intervention/image/src/Intervention/Image/ImageManager.php:92)
at Intervention\Image\ImageManager->cache()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:261)
at Illuminate\Support\Facades\Facade::__callStatic()
(/sites/akaunting/docs/app/Http/ViewComposers/Logo.php:39)
at App\Http\ViewComposers\Logo->compose()
at call_user_func_array()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/View/Concerns/ManagesEvents.php:125)
at Illuminate\View\Factory->Illuminate\View\Concerns\{closure}()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:381)
at Illuminate\Events\Dispatcher->Illuminate\Events\{closure}()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:226)
at Illuminate\Events\Dispatcher->dispatch()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/View/Concerns/ManagesEvents.php:179)
at Illuminate\View\Factory->callComposer()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/View/View.php:120)
at Illuminate\View\View->renderContents()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/View/View.php:91)
at Illuminate\View\View->render()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Http/Response.php:62)
at Illuminate\Http\Response->setContent()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Http/Response.php:34)
at Illuminate\Http\Response->__construct()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:759)
at Illuminate\Routing\Router::toResponse()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:731)
at Illuminate\Routing\Router->prepareResponse()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:685)
at Illuminate\Routing\Router->Illuminate\Routing\{closure}()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/santigarcor/laratrust/src/Middleware/LaratrustPermission.php:32)
at Laratrust\Middleware\LaratrustPermission->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/app/Http/Middleware/Money.php:54)
at App\Http\Middleware\Money->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/app/Http/Middleware/DateFormat.php:39)
at App\Http\Middleware\DateFormat->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/santigarcor/laratrust/src/Middleware/LaratrustPermission.php:32)
at Laratrust\Middleware\LaratrustPermission->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/app/Http/Middleware/AdminMenu.php:30)
at App\Http\Middleware\AdminMenu->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/app/Http/Middleware/RedirectIfWizardNotCompleted.php:21)
at App\Http\Middleware\RedirectIfWizardNotCompleted->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/app/Http/Middleware/LogoutIfUserDisabled.php:21)
at App\Http\Middleware\LogoutIfUserDisabled->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/akaunting/firewall/src/Abstracts/Middleware.php:29)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/akaunting/firewall/src/Abstracts/Middleware.php:29)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/akaunting/firewall/src/Abstracts/Middleware.php:36)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/akaunting/firewall/src/Abstracts/Middleware.php:36)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/akaunting/firewall/src/Abstracts/Middleware.php:36)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/akaunting/firewall/src/Abstracts/Middleware.php:36)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/akaunting/firewall/src/Abstracts/Middleware.php:36)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/akaunting/firewall/src/Abstracts/Middleware.php:36)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/akaunting/firewall/src/Abstracts/Middleware.php:36)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/akaunting/firewall/src/Abstracts/Middleware.php:36)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/akaunting/firewall/src/Abstracts/Middleware.php:36)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/akaunting/firewall/src/Abstracts/Middleware.php:36)
at Akaunting\Firewall\Abstracts\Middleware->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/akaunting/language/src/Middleware/SetLocale.php:95)
at Akaunting\Language\Middleware\SetLocale->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/app/Http/Middleware/LoadCurrencies.php:27)
at App\Http\Middleware\LoadCurrencies->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/app/Http/Middleware/LoadSettings.php:27)
at App\Http\Middleware\LoadSettings->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/app/Http/Middleware/AddXHeader.php:18)
at App\Http\Middleware\AddXHeader->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/app/Http/Middleware/RedirectIfNotInstalled.php:21)
at App\Http\Middleware\RedirectIfNotInstalled->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41)
at Illuminate\Routing\Middleware\SubstituteBindings->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php:44)
at Illuminate\Auth\Middleware\Authenticate->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:77)
at Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49)
at Illuminate\View\Middleware\ShareErrorsFromSession->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:116)
at Illuminate\Session\Middleware\StartSession->handleStatefulRequest()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:62)
at Illuminate\Session\Middleware\StartSession->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37)
at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:67)
at Illuminate\Cookie\Middleware\EncryptCookies->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103)
at Illuminate\Pipeline\Pipeline->then()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:687)
at Illuminate\Routing\Router->runRouteWithinStack()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:662)
at Illuminate\Routing\Router->runRoute()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:628)
at Illuminate\Routing\Router->dispatchToRoute()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Routing/Router.php:617)
at Illuminate\Routing\Router->dispatch()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:165)
at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php:65)
at Barryvdh\Debugbar\Middleware\InjectDebugbar->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21)
at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27)
at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/misterphilip/maintenance-mode/src/MisterPhilip/MaintenanceMode/Http/Middleware/CheckForMaintenanceMode.php:108)
at MisterPhilip\MaintenanceMode\Http\Middleware\CheckForMaintenanceMode->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/fideloper/proxy/src/TrustProxies.php:57)
at Fideloper\Proxy\TrustProxies->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/dingo/api/src/Http/Middleware/Request.php:111)
at Dingo\Api\Http\Middleware\Request->handle()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103)
at Illuminate\Pipeline\Pipeline->then()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:140)
at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
(/sites/akaunting/docs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:109)
at Illuminate\Foundation\Http\Kernel->handle()
(/sites/akaunting/docs/index.php:20)
Files are being uploaded, and running php from the command-line finfo_file is able to detect both PDF and PNG files
Also get the same error when there are no files or attachments involved when entering "bills" into the system
It seems there is a problem with the image uploaded.
Same error when no images are uploaded see also https://github.com/akaunting/akaunting/issues/1615
Showing 1 to 5 of 5 discussions