-
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
Saving a product produces a "No such entity with id =" banner #37874
Comments
Hi @robertdeboer. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Bravo. Thank you for working on this issue.
|
Hi @robertdeboer, Thank you for reporting and collaboration. Verified the issue on Magento 2.4-develop instance and the issue is not reproducible.Kindly refer the screenshots. Steps to reproduce
We are able to create new product and able to update the existing product. 75a76f3d-ac24-453b-a43d-fd3c6f7b4337.mp4Kindly recheck the behaviour on Magento 2.4-develop instance and elaborate steps to reproduce if the issue is still reproducible. Thanks. |
Hi @robertdeboer, Kindly provide latest update on this comment #37874 (comment) still you are working on this issue if you are able to reproduce the issue please elaborate the steps to reproduce.Please let us know still if you are facing any issue. Thanks. |
Hi @robertdeboer, We have noticed that this issue has not been updated since long time. Hence we assume that this issue is fixed now, so we are closing it. Please feel to raise a fresh ticket or reopen this ticket if you need more assistance on this. Thanks. |
Preconditions and environment
Steps to reproduce
Create a new product or update an existing product
Expected result
The page refreshed and you see "You saved the product"
Actual result
The page refreshes and you see "You saved the product" and "No such entity with id ="
In addition, this introduction of an error means if you go back to the product able and select Add New, the form may not clear itself and will contain all the product data of the previous product you were editing.
Additional information
In tracking this issue, it comes from the Shared Catalog module, specifically
Magento\SharedCatalog\Model\SharedCatalogInvalidation->checkSharedCatalogExist()
.This is becuase at
Magento\SharedCatalog\Observer\Controller\SaveProduct->execute()
it is callingMagento\SharedCatalog\Model\ProductManagement->assignProducts()
with an empty string.In the observer, at line 77, I see this:
The array_diff is returning an array with a single empty string and that is then being passed in the foreach and then in the function call.
I was able to patch this locally by:
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: