[Bug]: Tastyigniter 3.7.3, attaching existing image throws Undefined array key "path" error
prbt2016 opened this issue · comments
What happened?
Hello,
I was in the process of installing TastyIgniter 3.7.3 using composer + CLI install as mentioned here :
https://tastyigniter.com/docs/installation#command-line-installation
on Centos 7 with PHP 8.0 , MYSQL 5.7 , Apache 2.2. However attaching existing images fails i.e go to the '+' symbol to attach image under Locations , Categories or Menu items and clicking 'Attach' throws Undefined array key "path" as shown in the below screenshot.
Could you please replicate the issue at your end . I tested on PHP 8.1 as well , and there too I get same error.
What did you expect to happen?
Image should have been attached successfully.
Version
3.x
What browser are you seeing the problem on?
Firefox
Relevant log output
Following is the whole log under /storage/logs/system.log
[2023-10-02 11:16:22] production.ERROR: ErrorException: Undefined array key "path" in/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/app/admin/formwidgets/MediaFinder.php:256
Stack trace:
#0/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/app/admin/formwidgets/MediaFinder.php(256): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Undefined array...', '/{{PATH}}/{{TO}}/{{TASTYIGNITER}}...', 256)
#1 [internal function]: Admin\FormWidgets\MediaFinder->onAddAttachment('edit', '1')
#2/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/app/admin/classes/AdminController.php(474): call_user_func_array(Array, Array)
#3/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/app/admin/classes/AdminController.php(344): Admin\Classes\AdminController->runHandler('formThumb::onAd...', Array)
#4/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/app/admin/classes/AdminController.php(223): Admin\Classes\AdminController->processHandlers()
#5/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/app/system/classes/Controller.php(115): Admin\Classes\AdminController->remap('edit', Array)
#6/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): System\Classes\Controller->runAdmin('menus/edit/1')
#7/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction('runAdmin', Array)
#8/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Routing/Route.php(262): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(System\Classes\Controller), 'runAdmin')
#9/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate\Routing\Route->runController()
#10/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Routing/Router.php(721): Illuminate\Routing\Route->run()
#11/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#12/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/app/admin/middleware/LogUserLastSeen.php(26): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#13/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Admin\Middleware\LogUserLastSeen->handle(Object(Illuminate\Http\Request), Object(Closure))
#14/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/tastyigniter/flame/src/Translation/Middleware/Localization.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#15/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Igniter\Flame\Translation\Middleware\Localization->handle(Object(Illuminate\Http\Request), Object(Closure))
#16/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#17/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#18/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#19/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#20/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#21/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\Session\Middleware\StartSession->handleStatefulRequest(Object(Illuminate\Http\Request), Object(Illuminate\Session\Store), Object(Closure))
#22/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#23/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#24/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#25/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#27/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Routing/Router.php(723): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#29/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Routing/Router.php(698): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#30/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Routing/Router.php(662): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#31/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/tastyigniter/flame/src/Router/CoreRouter.php(22): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#32/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(167): Igniter\Flame\Router\CoreRouter->dispatch(Object(Illuminate\Http\Request))
#33/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#34/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/tastyigniter/flame/src/Setting/Middleware/SaveSetting.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#35/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Igniter\Flame\Setting\Middleware\SaveSetting->handle(Object(Illuminate\Http\Request), Object(Closure))
#36/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#37/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#38/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#39/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#40/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#41/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#42/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#43/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/fruitcake/laravel-cors/src/HandleCors.php(38): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Fruitcake\Cors\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#45/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/fideloper/proxy/src/TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Fideloper\Proxy\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#47/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(142): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#49/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(111): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#50/{{PATH}}/{{TO}}/{{TASTYIGNITER}}/index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#51 {main}
Hello,
You can close this issue for now . I checked with 3.7.4 and this is resolved.
This issue will be closed and archived in 3 days, as there has been no activity in the last 60 days. If this issue is still relevant or you would like to see it actioned, please respond and we will re-open this issue. If this issue is critical to your business, consider the Dedicated Support Service where a Service Level Agreement is offered.