-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Table structure issue catalog_product_entity (sku field is allowed nulls) #27411
Comments
Hi @stephan-cream. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @stephan-cream do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
I believe this to be a mistake in the structure design, as SKU is required throughout Magento. |
@magento give me 2.4-develop instance |
Hi @rodrigowebjump. Thank you for your request. I'm working on Magento 2.4-develop instance for you |
Hi @rodrigowebjump, here is your Magento instance. |
This is a database issue, unless you can directly insert the product in the database (or use custom code to import it) without an SKU this is not 'testable' on an Magento github generated development instance. |
Hi @engcom-Bravo. Thank you for working on this issue.
|
✅ Confirmed by @engcom-Bravo Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Hi @stephan-cream. Thank you for your report. The fix will be available with the upcoming 2.4.3 release. |
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Catalog\Model\ProductRepository::prepareSku() must be of the type string, null given, called in /vendor/magento/module-catalog/Model/ProductRepository.php on line 790 and defined in /vendor/magento/module-catalog/Model/ProductRepository.php:800 Stack trace: #0 /vendor/magento/module-catalog/Model/ProductRepository.php(790): Magento\Catalog\Model\ProductRepository->prepareSku(NULL) #1 /vendor/magento/module-catalog/Model/ProductRepository.php(349): Magento\Catalog\Model\ProductRepository->saveProductInLocalCache(Object(Magento\Catalog\Model\Product\Interceptor), '3e07f167255019f...') #2 /vendor/magento/module-catalog/Model/ProductRepository.php(314): Magento\Catalog\Model\ProductRepository->cacheProduct('3e07f167255019f...', Object(Magento\Catalog\Model\Product in /vendor/magento/module-catalog/Model/ProductRepository.php on line 800
The text was updated successfully, but these errors were encountered: