Fatal error: Uncaught TypeError: Argument 2 passed to Shopware\Bundle\StoreFrontBundle\Service\Core\PriceCalculator::calculatePrice() must be an instance of 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(87): DpnOneoffCosts\Subscriber\TemplateRegistrationSubscriber->onFrontendDetailPostDispatch()
#2 /var/www/clients/client1/web2/web/shopware/engine/Library/Enlight/Event/EventManager.php(214): Enlight_Event_Handler_Default->execute()
#3 /var/www/clients/client1/web2/web/shopware/engine/Library/Enlight/Controller/Action.php(206): Enlight_Event_EventManager->notify()
#4 /var/www/clients/client1/web2/web/shopware/engine/Library/Enlight/Controller/Dispatcher/Default.php(478): Enlight_Controller_Action->dispatch()
#5 /var/www/clients/client1/web2/web/shopware/engine/Library/Enlight/Controller/Front.php(228): Enlight_Controller_Dispatcher_Default->dispatch()
#6 /var/www/clients/client1/web2/web/shopware/engine/Shopware/Kernel.php(188): Enlight_Controller_Front->dispatch()
#7 /var/www/clients/client1/web2/web/shopware/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(102): Shopware\Kernel->handle()
#8 /var/www/clients/client1/web2/web/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(453): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle()
#9 /var/www/clients/client1/web2/web/shopware/engine/Shopware/Components/HttpCache/AppCache.php(261): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward()
#10 /var/www/clients/client1/web2/web/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(426): Shopware\Components\HttpCache\AppCache->forward()
#11 /var/www/clients/client1/web2/web/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(317): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch()
#12 /var/www/clients/client1/web2/web/shopware/engine/Shopware/Components/HttpCache/AppCache.php(188): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup()
#13 /var/www/clients/client1/web2/web/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(192): Shopware\Components\HttpCache\AppCache->lookup()
#14 /var/www/clients/client1/web2/web/shopware/engine/Shopware/Components/HttpCache/AppCache.php(113): 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