Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Type error: Argument 1 passed to Oro\Bundle\CatalogBundle\Entity\Repository\CategoryRepository::findOneByProduct() must be an instance of Oro\Bundle\ProductBundle\Entity\Product, null given, called in /app/vendor/oro/commerce/src/Oro/Bundle/CatalogBundle/Layout/Extension/ProductCategoriesContextConfigurator.php on line 85 in /app/vendor/oro/commerce/src/Oro/Bundle/CatalogBundle/Entity/Repository/CategoryRepository.php:114 Stack trace: #0 /app/vendor/oro/commerce/src/Oro/Bundle/CatalogBundle/Layout/Extension/ProductCategoriesContextConfigurator.php(85): Oro\Bundle\CatalogBundle\Entity\Repository\CategoryRepository->findOneByProduct(NULL) #1 /app/vendor/oro/platform/src/Oro/Component/Layout/LayoutRegistry.php(192): Oro\Bundle\CatalogBundle\Layout\Extension\ProductCategoriesContextConfigurator->configureContext(Object(Oro\Component\Layout\LayoutContext)) #2 /app/vendor/oro/platform/src/Oro/Component/Layout/LayoutBuilder.php(216): Oro\Component\Layou in /app/vendor/oro/commerce/src/Oro/Bundle/CatalogBundle/Entity/Repository/CategoryRepository.php on line 114