Fatal error: Uncaught TypeError: Shopware\Bundle\StoreFrontBundle\Service\Core\PriceCalculator::calculatePrice(): Argument #2 ($tax) must be of type Shopware\Bundle\StoreFrontBundle\Struct\Tax, null given, called in /var/www/clients/client1/web2/web/shopware/custom/plugins/DpnOneoffCosts/Subscriber/TemplateRegistrationSubscriber.php on line 79 and defined in /var/www/clients/client1/web2/web/shopware/engine/Shopware/Bundle/StoreFrontBundle/Service/Core/PriceCalculator.php:36
Stack trace:
#0 /var/www/clients/client1/web2/web/shopware/custom/plugins/DpnOneoffCosts/Subscriber/TemplateRegistrationSubscriber.php(79): Shopware\Bundle\StoreFrontBundle\Service\Core\PriceCalculator->calculatePrice()
#1 /var/www/clients/client1/web2/web/shopware/engine/Library/Enlight/Event/Handler/Default.php(90): DpnOneoffCosts\Subscriber\TemplateRegistrationSubscriber->onFrontendDetailPostDispatch()
#2 /var/www/clients/client1/web2/web/shopware/engine/Library/Enlight/Event/EventManager.php(207): Enlight_Event_Handler_Default->execute()
#3 /var/www/clients/client1/web2/web/shopware/engine/Library/Enlight/Controller/Action.php(200): Enlight_Event_EventManager->notify()
#4 /var/www/clients/client1/web2/web/shopware/engine/Library/Enlight/Controller/Dispatcher/Default.php(467): Enlight_Controller_Action->dispatch()
#5 /var/www/clients/client1/web2/web/shopware/engine/Library/Enlight/Controller/Front.php(225): Enlight_Controller_Dispatcher_Default->dispatch()
#6 /var/www/clients/client1/web2/web/shopware/engine/Shopware/Kernel.php(197): Enlight_Controller_Front->dispatch()
#7 /var/www/clients/client1/web2/web/shopware/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(85): Shopware\Kernel->handle()
#8 /var/www/clients/client1/web2/web/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(479): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle()
#9 /var/www/clients/client1/web2/web/shopware/engine/Shopware/Components/HttpCache/AppCache.php(266): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward()
#10 /var/www/clients/client1/web2/web/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(452): Shopware\Components\HttpCache\AppCache->forward()
#11 /var/www/clients/client1/web2/web/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(346): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch()
#12 /var/www/clients/client1/web2/web/shopware/engine/Shopware/Components/HttpCache/AppCache.php(192): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup()
#13 /var/www/clients/client1/web2/web/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(224): Shopware\Components\HttpCache\AppCache->lookup()
#14 /var/www/clients/client1/web2/web/shopware/engine/Shopware/Components/HttpCache/AppCache.php(117): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle()
#15 /var/www/clients/client1/web2/web/shopware/shopware.php(122): Shopware\Components\HttpCache\AppCache->handle()
#16 {main}
thrown in /var/www/clients/client1/web2/web/shopware/engine/Shopware/Bundle/StoreFrontBundle/Service/Core/PriceCalculator.php on line 36