Afrikahandel
Aktives Mitglied
Wie im Titel erwähnt - auf einem Server mit JTL Shop 5.3.x läuft in den error logs vom apache regelmäßig ein error auf der sich wie folgt darstellt:
PHP Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in /var/www/html/includes/src/Filter/Items/PriceRange.php:189\nStack trace:\n#0 /var/www/html/includes/src/Filter/Items/PriceRange.php(189): array_keys()\n#1 /var/www/html/includes/src/Filter/Items/PriceRange.php(479): JTL\\Filter\\Items\\PriceRange->init()\n#2 /var/www/html/includes/src/Filter/Items/PriceRange.php(637): JTL\\Filter\\Items\\PriceRange->getAutomaticRangeOptions()\n#3 /var/www/html/includes/src/Filter/SearchResults.php(714): JTL\\Filter\\Items\\PriceRange->getOptions()\n#4 /var/www/html/includes/src/Filter/ProductFilter.php(1629): JTL\\Filter\\SearchResults->setFilterOptions()\n#5 /var/www/html/includes/src/Router/Controller/ProductListController.php(83): JTL\\Filter\\ProductFilter->generateSearchResults()\n#6 /var/www/html/includes/src/Router/Controller/CategoryController.php(78): JTL\\Router\\Controller\\ProductListController->getResponse()\n#7 /var/www/html/includes/src/Router/Controller/DefaultController.php(117): JTL\\Router\\Controller\\CategoryController->getResponse()\n#8 /var/www/html/includes/src/Router/Strategy/SmartyStrategy.php(40): JTL\\Router\\Controller\\DefaultController->getResponse()\n#9 /var/www/html/includes/vendor/league/route/src/Route.php(167): JTL\\Router\\Strategy\\SmartyStrategy->invokeRouteCallable()\n#10 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): League\\Route\\Route->process()\n#11 /var/www/html/includes/src/Router/Middleware/MaintenanceModeMiddleware.php(40): League\\Route\\Dispatcher->handle()\n#12 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\\Router\\Middleware\\MaintenanceModeMiddleware->process()\n#13 /var/www/html/includes/src/Router/Middleware/PhpFileCheckMiddleware.php(36): League\\Route\\Dispatcher->handle()\n#14 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\\Router\\Middleware\\PhpFileCheckMiddleware->process()\n#15 /var/www/html/includes/src/Router/Middleware/OptinMiddleware.php(49): League\\Route\\Dispatcher->handle()\n#16 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\\Router\\Middleware\\OptinMiddleware->process()\n#17 /var/www/html/includes/src/Router/Middleware/CurrencyCheckMiddleware.php(26): League\\Route\\Dispatcher->handle()\n#18 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\\Router\\Middleware\\CurrencyCheckMiddleware->process()\n#19 /var/www/html/includes/src/Router/Middleware/LocaleCheckMiddleware.php(34): League\\Route\\Dispatcher->handle()\n#20 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\\Router\\Middleware\\LocaleCheckMiddleware->process()\n#21 /var/www/html/includes/src/Router/Middleware/CartcheckMiddleware.php(25): League\\Route\\Dispatcher->handle()\n#22 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\\Router\\Middleware\\CartcheckMiddleware->process()\n#23 /var/www/html/includes/src/Router/Middleware/WishlistCheckMiddleware.php(24): League\\Route\\Dispatcher->handle()\n#24 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\\Router\\Middleware\\WishlistCheckMiddleware->process()\n#25 /var/www/html/includes/src/Router/Middleware/SSLRedirectMiddleware.php(43): League\\Route\\Dispatcher->handle()\n#26 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\\Router\\Middleware\\SSLRedirectMiddleware->process()\n#27 /var/www/html/includes/src/Router/Middleware/MaintenanceModeMiddleware.php(40): League\\Route\\Dispatcher->handle()\n#28 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\\Router\\Middleware\\MaintenanceModeMiddleware->process()\n#29 /var/www/html/includes/src/Router/Middleware/LocaleRedirectMiddleware.php(38): League\\Route\\Dispatcher->handle()\n#30 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\\Router\\Middleware\\LocaleRedirectMiddleware->process()\n#31 /var/www/html/includes/vendor/league/route/src/Strategy/ApplicationStrategy.php(37): League\\Route\\Dispatcher->handle()\n#32 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): Psr\\Http\\Server\\MiddlewareInterface@anonymous->process()\n#33 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(53): League\\Route\\Dispatcher->handle()\n#34 /var/www/html/includes/vendor/league/route/src/Router.php(111): League\\Route\\Dispatcher->dispatchRequest()\n#35 /var/www/html/includes/src/Router/Router.php(703): League\\Route\\Router->dispatch()\n#36 /var/www/html/includes/src/Shop.php(501): JTL\\Router\\Router->dispatch()\n#37 /var/www/html/index.php(7): JTL\\Shop::dispatch()\n#38 {main}\n thrown in /var/www/html/includes/src/Filter/Items/PriceRange.php on line 189
PHP Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in /var/www/html/includes/src/Filter/Items/PriceRange.php:189\nStack trace:\n#0 /var/www/html/includes/src/Filter/Items/PriceRange.php(189): array_keys()\n#1 /var/www/html/includes/src/Filter/Items/PriceRange.php(479): JTL\\Filter\\Items\\PriceRange->init()\n#2 /var/www/html/includes/src/Filter/Items/PriceRange.php(637): JTL\\Filter\\Items\\PriceRange->getAutomaticRangeOptions()\n#3 /var/www/html/includes/src/Filter/SearchResults.php(714): JTL\\Filter\\Items\\PriceRange->getOptions()\n#4 /var/www/html/includes/src/Filter/ProductFilter.php(1629): JTL\\Filter\\SearchResults->setFilterOptions()\n#5 /var/www/html/includes/src/Router/Controller/ProductListController.php(83): JTL\\Filter\\ProductFilter->generateSearchResults()\n#6 /var/www/html/includes/src/Router/Controller/CategoryController.php(78): JTL\\Router\\Controller\\ProductListController->getResponse()\n#7 /var/www/html/includes/src/Router/Controller/DefaultController.php(117): JTL\\Router\\Controller\\CategoryController->getResponse()\n#8 /var/www/html/includes/src/Router/Strategy/SmartyStrategy.php(40): JTL\\Router\\Controller\\DefaultController->getResponse()\n#9 /var/www/html/includes/vendor/league/route/src/Route.php(167): JTL\\Router\\Strategy\\SmartyStrategy->invokeRouteCallable()\n#10 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): League\\Route\\Route->process()\n#11 /var/www/html/includes/src/Router/Middleware/MaintenanceModeMiddleware.php(40): League\\Route\\Dispatcher->handle()\n#12 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\\Router\\Middleware\\MaintenanceModeMiddleware->process()\n#13 /var/www/html/includes/src/Router/Middleware/PhpFileCheckMiddleware.php(36): League\\Route\\Dispatcher->handle()\n#14 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\\Router\\Middleware\\PhpFileCheckMiddleware->process()\n#15 /var/www/html/includes/src/Router/Middleware/OptinMiddleware.php(49): League\\Route\\Dispatcher->handle()\n#16 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\\Router\\Middleware\\OptinMiddleware->process()\n#17 /var/www/html/includes/src/Router/Middleware/CurrencyCheckMiddleware.php(26): League\\Route\\Dispatcher->handle()\n#18 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\\Router\\Middleware\\CurrencyCheckMiddleware->process()\n#19 /var/www/html/includes/src/Router/Middleware/LocaleCheckMiddleware.php(34): League\\Route\\Dispatcher->handle()\n#20 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\\Router\\Middleware\\LocaleCheckMiddleware->process()\n#21 /var/www/html/includes/src/Router/Middleware/CartcheckMiddleware.php(25): League\\Route\\Dispatcher->handle()\n#22 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\\Router\\Middleware\\CartcheckMiddleware->process()\n#23 /var/www/html/includes/src/Router/Middleware/WishlistCheckMiddleware.php(24): League\\Route\\Dispatcher->handle()\n#24 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\\Router\\Middleware\\WishlistCheckMiddleware->process()\n#25 /var/www/html/includes/src/Router/Middleware/SSLRedirectMiddleware.php(43): League\\Route\\Dispatcher->handle()\n#26 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\\Router\\Middleware\\SSLRedirectMiddleware->process()\n#27 /var/www/html/includes/src/Router/Middleware/MaintenanceModeMiddleware.php(40): League\\Route\\Dispatcher->handle()\n#28 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\\Router\\Middleware\\MaintenanceModeMiddleware->process()\n#29 /var/www/html/includes/src/Router/Middleware/LocaleRedirectMiddleware.php(38): League\\Route\\Dispatcher->handle()\n#30 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): JTL\\Router\\Middleware\\LocaleRedirectMiddleware->process()\n#31 /var/www/html/includes/vendor/league/route/src/Strategy/ApplicationStrategy.php(37): League\\Route\\Dispatcher->handle()\n#32 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(59): Psr\\Http\\Server\\MiddlewareInterface@anonymous->process()\n#33 /var/www/html/includes/vendor/league/route/src/Dispatcher.php(53): League\\Route\\Dispatcher->handle()\n#34 /var/www/html/includes/vendor/league/route/src/Router.php(111): League\\Route\\Dispatcher->dispatchRequest()\n#35 /var/www/html/includes/src/Router/Router.php(703): League\\Route\\Router->dispatch()\n#36 /var/www/html/includes/src/Shop.php(501): JTL\\Router\\Router->dispatch()\n#37 /var/www/html/index.php(7): JTL\\Shop::dispatch()\n#38 {main}\n thrown in /var/www/html/includes/src/Filter/Items/PriceRange.php on line 189