TastyIgniter throws an error on any other day than wednesday on selecting menues. No customer can order now. The database seems kinda fucked up regarding the opening schedule.
https://ibb.co/5627K0b
ErrorLog:
2021-07-01 14:39:33 Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function lt() on null
in /var/www/html/tastyIgniter/vendor/tastyigniter/flame/src/Location/WorkingSchedule.php:462
Stack trace:
#0 /var/www/html/tastyIgniter/vendor/tastyigniter/flame/src/Location/WorkingSchedule.php(327): Igniter\Flame\Location\WorkingSchedule->createPeriodForDays()
#1 /var/www/html/tastyIgniter/extensions/igniter/local/classes/Location.php(281): Igniter\Flame\Location\WorkingSchedule->getTimeslot()
#2 /var/www/html/tastyIgniter/extensions/igniter/local/components/LocalBox.php(195): Igniter\Local\Classes\Location->scheduleTimeslot()
#3 /var/www/html/tastyIgniter/extensions/igniter/local/components/LocalBox.php(109): Igniter\Local\Components\LocalBox->prepareVars()
#4 /var/www/html/tastyIgniter/app/main/template/concerns/HasComponents.php(102): Igniter\Local\Components\LocalBox->onRun()
#5 /var/www/html/tastyIgniter/app/main/classes/MainController.php(301): Main\Template\Model->runComponents()
#6 /var/www/html/tastyIgniter/app/main/classes/MainController.php(260): Main\Classes\MainController->execPageCycle()
#7 /var/www/html/tastyIgniter/app/main/classes/MainController.php(196): Main\Classes\MainController->runPage()
#8 /var/www/html/tastyIgniter/app/system/classes/Controller.php(85): Main\Classes\MainController->remap()
#9 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): System\Classes\Controller->run()
#10 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction()
#11 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Routing/Route.php(219): Illuminate\Routing\ControllerDispatcher->dispatch()
#12 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Routing/Route.php(176): Illuminate\Routing\Route->runController()
#13 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Routing/Router.php(681): Illuminate\Routing\Route->run()
#14 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(130): Illuminate\Routing\Router->Illuminate\Routing{closure}()
#15 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#16 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle()
#17 /var/www/html/tastyIgniter/vendor/tastyigniter/flame/src/Currency/Middleware/CurrencyMiddleware.php(33): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#18 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Igniter\Flame\Currency\Middleware\CurrencyMiddleware->handle()
#19 /var/www/html/tastyIgniter/extensions/igniter/cart/middleware/CartMiddleware.php(12): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#20 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Igniter\Cart\Middleware\CartMiddleware->handle()
#21 /var/www/html/tastyIgniter/vendor/tastyigniter/flame/src/Translation/Middleware/Localization.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#22 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Igniter\Flame\Translation\Middleware\Localization->handle()
#23 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#24 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Routing\Middleware\SubstituteBindings->handle()
#25 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#26 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\View\Middleware\ShareErrorsFromSession->handle()
#27 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(56): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#28 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Session\Middleware\StartSession->handle()
#29 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#30 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle()
#31 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#32 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Cookie\Middleware\EncryptCookies->handle()
#33 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#34 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Routing/Router.php(683): Illuminate\Pipeline\Pipeline->then()
#35 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Routing/Router.php(658): Illuminate\Routing\Router->runRouteWithinStack()
#36 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Routing/Router.php(624): Illuminate\Routing\Router->runRoute()
#37 /var/www/html/tastyIgniter/vendor/october/rain/src/Router/CoreRouter.php(20): Illuminate\Routing\Router->dispatchToRoute()
#38 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(170): October\Rain\Router\CoreRouter->dispatch()
#39 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(130): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http{closure}()
#40 /var/www/html/tastyIgniter/vendor/tastyigniter/flame/src/Setting/Middleware/SaveSetting.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#41 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Igniter\Flame\Setting\Middleware\SaveSetting->handle()
#42 /var/www/html/tastyIgniter/vendor/fideloper/proxy/src/TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#43 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Fideloper\Proxy\TrustProxies->handle()
#44 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#45 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
#46 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#47 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
#48 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#49 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle()
#50 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(63): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#51 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle()
#52 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#53 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(145): Illuminate\Pipeline\Pipeline->then()
#54 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
#55 /var/www/html/tastyIgniter/index.php(53): Illuminate\Foundation\Http\Kernel->handle()
#56 {main}
If I try to change the opening times:
2021-07-01 14:49:04 ErrorException: in_array() expects parameter 2 to be array, null given
in /var/www/html/tastyIgniter/app/admin/classes/ScheduleItem.php:54
Stack trace:
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
#1 /var/www/html/tastyIgniter/app/admin/classes/ScheduleItem.php(54): in_array()
#2 /var/www/html/tastyIgniter/app/admin/traits/HasWorkingHours.php(179): Admin\Classes\ScheduleItem->getHours()
#3 /var/www/html/tastyIgniter/app/admin/traits/HasWorkingHours.php(144): Admin\Models\Locations_model->addOpeningHours()
#4 /var/www/html/tastyIgniter/app/admin/formwidgets/ScheduleEditor.php(95): Admin\Models\Locations_model->updateSchedule()
#5 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Database/Concerns/ManagesTransactions.php(29): Admin\FormWidgets\ScheduleEditor->Admin\FormWidgets{closure}()
#6 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php(349): Illuminate\Database\Connection->transaction()
#7 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(261): Illuminate\Database\DatabaseManager->call()
#8 /var/www/html/tastyIgniter/app/admin/formwidgets/ScheduleEditor.php(99): Illuminate\Support\Facades\Facade::callStatic()
#9 [internal function]: Admin\FormWidgets\ScheduleEditor->onSaveRecord()
#10 /var/www/html/tastyIgniter/app/admin/classes/AdminController.php(395): call_user_func_array()
#11 /var/www/html/tastyIgniter/app/admin/classes/AdminController.php(262): Admin\Classes\AdminController->runHandler()
#12 /var/www/html/tastyIgniter/app/admin/classes/AdminController.php(167): Admin\Classes\AdminController->processHandlers()
#13 /var/www/html/tastyIgniter/app/admin/controllers/Locations.php(68): Admin\Classes\AdminController->remap()
#14 /var/www/html/tastyIgniter/app/system/classes/Controller.php(106): Admin\Controllers\Locations->remap()
#15 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): System\Classes\Controller->runAdmin()
#16 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction()
#17 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Routing/Route.php(219): Illuminate\Routing\ControllerDispatcher->dispatch()
#18 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Routing/Route.php(176): Illuminate\Routing\Route->runController()
#19 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Routing/Router.php(681): Illuminate\Routing\Route->run()
#20 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(130): Illuminate\Routing\Router->Illuminate\Routing{closure}()
#21 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#22 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle()
#23 /var/www/html/tastyIgniter/vendor/tastyigniter/flame/src/Currency/Middleware/CurrencyMiddleware.php(33): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#24 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Igniter\Flame\Currency\Middleware\CurrencyMiddleware->handle()
#25 /var/www/html/tastyIgniter/app/admin/middleware/LogUserLastSeen.php(26): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#26 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Admin\Middleware\LogUserLastSeen->handle()
#27 /var/www/html/tastyIgniter/vendor/tastyigniter/flame/src/Translation/Middleware/Localization.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#28 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Igniter\Flame\Translation\Middleware\Localization->handle()
#29 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#30 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Routing\Middleware\SubstituteBindings->handle()
#31 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#32 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\View\Middleware\ShareErrorsFromSession->handle()
#33 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(56): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#34 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Session\Middleware\StartSession->handle()
#35 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#36 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle()
#37 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#38 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Cookie\Middleware\EncryptCookies->handle()
#39 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#40 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Routing/Router.php(683): Illuminate\Pipeline\Pipeline->then()
#41 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Routing/Router.php(658): Illuminate\Routing\Router->runRouteWithinStack()
#42 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Routing/Router.php(624): Illuminate\Routing\Router->runRoute()
#43 /var/www/html/tastyIgniter/vendor/october/rain/src/Router/CoreRouter.php(20): Illuminate\Routing\Router->dispatchToRoute()
#44 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(170): October\Rain\Router\CoreRouter->dispatch()
#45 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(130): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http{closure}()
#46 /var/www/html/tastyIgniter/vendor/tastyigniter/flame/src/Setting/Middleware/SaveSetting.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#47 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Igniter\Flame\Setting\Middleware\SaveSetting->handle()
#48 /var/www/html/tastyIgniter/vendor/fideloper/proxy/src/TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#49 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Fideloper\Proxy\TrustProxies->handle()
#50 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#51 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
#52 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#53 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
#54 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#55 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle()
#56 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(63): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#57 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle()
#58 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}()
#59 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(145): Illuminate\Pipeline\Pipeline->then()
#60 /var/www/html/tastyIgniter/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
#61 /var/www/html/tastyIgniter/index.php(53): Illuminate\Foundation\Http\Kernel->handle()
#62 {main}