Fatal error: Uncaught TypeError: array_shift(): Argument #1 ($array) must be of type array, bool given in /var/www/web-application/custom/plugins/TWTHrefLang/RouteParameterFilters/SortingParameterFilter.php:55
Stack trace:
#0 /var/www/web-application/custom/plugins/TWTHrefLang/RouteParameterFilters/SortingParameterFilter.php(55): array_shift()
#1 /var/www/web-application/custom/plugins/TWTHrefLang/Service/HrefLangService.php(140): TWTHrefLang\RouteParameterFilters\SortingParameterFilter->filter()
#2 /var/www/web-application/custom/plugins/TWTHrefLang/Service/HrefLangService.php(98): TWTHrefLang\Service\HrefLangService->filterParameters()
#3 /var/www/web-application/engine/Shopware/Bundle/StoreFrontBundle/Service/Core/CachedHrefLangService.php(56): TWTHrefLang\Service\HrefLangService->getUrls()
#4 /var/www/web-application/engine/Shopware/Plugins/Default/Frontend/Seo/Bootstrap.php(161): Shopware\Bundle\StoreFrontBundle\Service\Core\CachedHrefLangService->getUrls()
#5 /var/www/web-application/engine/Library/Enlight/Event/Handler/Plugin.php(155): Shopware_Plugins_Frontend_Seo_Bootstrap->onPostDispatch()
#6 /var/www/web-application/engine/Library/Enlight/Event/EventManager.php(207): Enlight_Event_Handler_Plugin->execute()
#7 /var/www/web-application/engine/Library/Enlight/Controller/Action.php(229): Enlight_Event_EventManager->notify()
#8 /var/www/web-application/engine/Library/Enlight/Controller/Dispatcher/Default.php(467): Enlight_Controller_Action->dispatch()
#9 /var/www/web-application/engine/Library/Enlight/Controller/Front.php(226): Enlight_Controller_Dispatcher_Default->dispatch()
#10 /var/www/web-application/engine/Shopware/Kernel.php(195): Enlight_Controller_Front->dispatch()
#11 /var/www/web-application/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(85): Shopware\Kernel->handle()
#12 /var/www/web-application/vendor/symfony/http-kernel/HttpCache/HttpCache.php(479): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle()
#13 /var/www/web-application/engine/Shopware/Components/HttpCache/AppCache.php(270): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward()
#14 /var/www/web-application/vendor/symfony/http-kernel/HttpCache/HttpCache.php(452): Shopware\Components\HttpCache\AppCache->forward()
#15 /var/www/web-application/vendor/symfony/http-kernel/HttpCache/HttpCache.php(346): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch()
#16 /var/www/web-application/engine/Shopware/Components/HttpCache/AppCache.php(196): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup()
#17 /var/www/web-application/vendor/symfony/http-kernel/HttpCache/HttpCache.php(224): Shopware\Components\HttpCache\AppCache->lookup()
#18 /var/www/web-application/engine/Shopware/Components/HttpCache/AppCache.php(117): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle()
#19 /var/www/web-application/shopware.php(122): Shopware\Components\HttpCache\AppCache->handle()
#20 {main}
thrown in /var/www/web-application/custom/plugins/TWTHrefLang/RouteParameterFilters/SortingParameterFilter.php on line 55