Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when editing a product bases on a family with 0 required attributes #20434

Open
rickschippers opened this issue Apr 18, 2024 · 0 comments

Comments

@rickschippers
Copy link

When you have family with 0 required attributes. And a product based on that family. When you try to edit the project an http 500 internal server error happens.

Traced this back to the product nomalizer trying to run \Akeneo\Pim\Structure\Bundle\Query\InternalApi\Family\GetRequiredAttributesMasksAggregator
which in turn throws a NonExistingFamiliesExtension

GetRequiredAttributesMasksAggregator.php:37, Akeneo\Pim\Structure\Bundle\Query\InternalApi\Family\GetRequiredAttributesMasksAggregator->fromFamilyCodes() MissingRequiredAttributesCalculator.php:49, Akeneo\Pim\Enrichment\Component\Product\Completeness\MissingRequiredAttributesCalculator->fromEntityWithFamily() ProductModelNormalizer.php:161, Akeneo\Pim\Enrichment\Component\Product\Normalizer\InternalApi\ProductModelNormalizer->normalize() Serializer.php:161, Symfony\Component\Serializer\Serializer->normalize() ProductModelController.php:401, Akeneo\Pim\Enrichment\Bundle\Controller\InternalApi\ProductModelController->normalizeProductModel() ProductModelController.php:119, Akeneo\Pim\Enrichment\Bundle\Controller\InternalApi\ProductModelController->getAction() HttpKernel.php:163, Symfony\Component\HttpKernel\HttpKernel->handleRaw() HttpKernel.php:75, Symfony\Component\HttpKernel\HttpKernel->handle() Kernel.php:202, Symfony\Component\HttpKernel\Kernel->handle() index.php:20, {main}()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant