akeneo / pim-community-dev

[Community Development Repository] The open source Product Information Management (PIM)
http://www.akeneo.com
Other
958 stars 518 forks source link

Critical issue: When attempting to create a variant product without an SKU in the product model, the system returns a 500 Internal Server Error. This error is observed in the console. #20486

Open deepakk-webkul opened 1 week ago

deepakk-webkul commented 1 week ago
  1. Test Environment:
    • Akeneo Version: 7.0.53
    • Mode: Production
    • Sample Data: Icecat sample data fixtures installed

Problem Statement: When attempting to create a variant product without an SKU in the product model, the system returns a 500 Internal Server Error. This error is observed in the console.

Screenshot from 2024-11-15 10-42-27

Log :-: [2024-11-15T10:42:24.166051+05:30] request.CRITICAL: Uncaught PHP Exception TypeError: "mb_strtolower(): Argument #1 ($string) must be of type string, null given" at /home/users/deepak.kumar/www/html/akeneo7/71/vendor/akeneo/pim-community-dev/src/Akeneo/Pim/Enrichment/Component/Product/Validator/UniqueAxesCombinationSet.php line 90 {"exception":"[object] (TypeError(code: 0): mb_strtolower(): Argument #1 ($string) must be of type string, null given at /home/users/deepak.kumar/www/html/akeneo7/71/vendor/akeneo/pim-community-dev/src/Akeneo/Pim/Enrichment/Component/Product/Validator/UniqueAxesCombinationSet.php:90)"} []