Fatal error: Uncaught TypeError: Argument 1 passed to NetiSurcharge\Service\SurchargeVariantService::fetchMainOrderNumber() must be of the type int, null given, called in /var/www/vhosts/eller-foodpackaging.de/htdocs/foodshop/custom/plugins/NetiSurcharge/Subscriber/Frontend.php on line 236 and defined in /var/www/vhosts/eller-foodpackaging.de/htdocs/foodshop/custom/plugins/NetiSurcharge/Service/SurchargeVariantService.php:27
Stack trace:
#0 /var/www/vhosts/eller-foodpackaging.de/htdocs/foodshop/custom/plugins/NetiSurcharge/Subscriber/Frontend.php(236): NetiSurcharge\Service\SurchargeVariantService->fetchMainOrderNumber()
#1 /var/www/vhosts/eller-foodpackaging.de/htdocs/foodshop/engine/Library/Enlight/Event/Handler/Default.php(90): NetiSurcharge\Subscriber\Frontend->onPostDispatchFrontendDetail()
#2 /var/www/vhosts/eller-foodpackaging.de/htdocs/foodshop/engine/Library/Enlight/Event/EventManager.php(207): Enlight_Event_Handler_Default->execute()
#3 /var/www/vhosts/eller-foodpackaging.de/htdocs/foodshop/engine/Library/Enlight/Controller/Action.php(203): Enlight_Event_EventManager->notify()
#4 /var/www/vhosts/eller-foodpackaging.de/htdocs/foodshop/engine/Library/Enlight/Controller/Dispatcher/Default.php(467): Enlight_Controller_Action->dispatch()
#5 /var/www/vhosts/eller-foodpackaging.de/htdocs/foodshop/engine/Library/Enlight/Controller/Front.php(226): Enlight_Controller_Dispatcher_Default->dispatch()
#6 /var/www/vhosts/eller-foodpackaging.de/htdocs/foodshop/engine/Shopware/Kernel.php(195): Enlight_Controller_Front->dispatch()
#7 /var/www/vhosts/eller-foodpackaging.de/htdocs/foodshop/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(85): Shopware\Kernel->handle()
#8 /var/www/vhosts/eller-foodpackaging.de/htdocs/foodshop/vendor/symfony/http-kernel/HttpCache/HttpCache.php(479): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle()
#9 /var/www/vhosts/eller-foodpackaging.de/htdocs/foodshop/engine/Shopware/Components/HttpCache/AppCache.php(270): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward()
#10 /var/www/vhosts/eller-foodpackaging.de/htdocs/foodshop/vendor/symfony/http-kernel/HttpCache/HttpCache.php(452): Shopware\Components\HttpCache\AppCache->forward()
#11 /var/www/vhosts/eller-foodpackaging.de/htdocs/foodshop/vendor/symfony/http-kernel/HttpCache/HttpCache.php(346): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch()
#12 /var/www/vhosts/eller-foodpackaging.de/htdocs/foodshop/engine/Shopware/Components/HttpCache/AppCache.php(196): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup()
#13 /var/www/vhosts/eller-foodpackaging.de/htdocs/foodshop/vendor/symfony/http-kernel/HttpCache/HttpCache.php(224): Shopware\Components\HttpCache\AppCache->lookup()
#14 /var/www/vhosts/eller-foodpackaging.de/htdocs/foodshop/engine/Shopware/Components/HttpCache/AppCache.php(117): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle()
#15 /var/www/vhosts/eller-foodpackaging.de/htdocs/foodshop/shopware.php(122): Shopware\Components\HttpCache\AppCache->handle()
#16 {main}
thrown in /var/www/vhosts/eller-foodpackaging.de/htdocs/foodshop/custom/plugins/NetiSurcharge/Service/SurchargeVariantService.php on line 27