Fatal error: Uncaught TypeError: SwagCustomProducts\Components\Services\TemplateService::getTemplateId(): Argument #1 ($productId) must be of type int, null given, called in /homepages/33/d19648383/htdocs/Shopware/custom/plugins/SwagCustomProducts/Components/Services/TemplateService.php on line 74 and defined in /homepages/33/d19648383/htdocs/Shopware/custom/plugins/SwagCustomProducts/Components/Services/TemplateService.php:369
Stack trace:
#0 /homepages/33/d19648383/htdocs/Shopware/custom/plugins/SwagCustomProducts/Components/Services/TemplateService.php(74): SwagCustomProducts\Components\Services\TemplateService->getTemplateId()
#1 /homepages/33/d19648383/htdocs/Shopware/custom/plugins/SwagCustomProducts/Subscriber/Frontend.php(79): SwagCustomProducts\Components\Services\TemplateService->getTemplateByProductId()
#2 /homepages/33/d19648383/htdocs/Shopware/engine/Library/Enlight/Event/Handler/Default.php(90): SwagCustomProducts\Subscriber\Frontend->onPostDispatchFrontendDetail()
#3 /homepages/33/d19648383/htdocs/Shopware/engine/Library/Enlight/Event/EventManager.php(207): Enlight_Event_Handler_Default->execute()
#4 /homepages/33/d19648383/htdocs/Shopware/engine/Library/Enlight/Controller/Action.php(203): Enlight_Event_EventManager->notify()
#5 /homepages/33/d19648383/htdocs/Shopware/engine/Library/Enlight/Controller/Dispatcher/Default.php(467): Enlight_Controller_Action->dispatch()
#6 /homepages/33/d19648383/htdocs/Shopware/engine/Library/Enlight/Controller/Front.php(226): Enlight_Controller_Dispatcher_Default->dispatch()
#7 /homepages/33/d19648383/htdocs/Shopware/engine/Shopware/Kernel.php(195): Enlight_Controller_Front->dispatch()
#8 /homepages/33/d19648383/htdocs/Shopware/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(85): Shopware\Kernel->handle()
#9 /homepages/33/d19648383/htdocs/Shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(479): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle()
#10 /homepages/33/d19648383/htdocs/Shopware/engine/Shopware/Components/HttpCache/AppCache.php(270): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward()
#11 /homepages/33/d19648383/htdocs/Shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(452): Shopware\Components\HttpCache\AppCache->forward()
#12 /homepages/33/d19648383/htdocs/Shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(346): Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch()
#13 /homepages/33/d19648383/htdocs/Shopware/engine/Shopware/Components/HttpCache/AppCache.php(196): Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup()
#14 /homepages/33/d19648383/htdocs/Shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(224): Shopware\Components\HttpCache\AppCache->lookup()
#15 /homepages/33/d19648383/htdocs/Shopware/engine/Shopware/Components/HttpCache/AppCache.php(117): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle()
#16 /homepages/33/d19648383/htdocs/Shopware/shopware.php(122): Shopware\Components\HttpCache\AppCache->handle()
#17 {main}
thrown in /homepages/33/d19648383/htdocs/Shopware/custom/plugins/SwagCustomProducts/Components/Services/TemplateService.php on line 369