-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Magento 2.2 Fix Product::addImageToMediaGallery throws Exception #18951
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
Magento 2.2 Fix Product::addImageToMediaGallery throws Exception #18951
Conversation
Hi @progreg. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
@progreg please rewrite branch history as cherry-picks of corresponding 2.3 commits, for example, |
@orlangur, I did force push to remove old commits, and all related changes from 2.3 were applied as a patch. Is it will be enough? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@progreg yeah, should be fine as you're the author 👍 Please make similar squashing for 2.3
PR next time, then it would be perfect)
Hi @orlangur, thank you for the review. |
@orlangur, Ok, thanks for the advice :) |
Hi @progreg. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
Does not need to be ported as code already is in 2.3-develop |
Fixed Issues (if relevant)
Preconditions
Magento Version 2.2.6
PHP Version 7.1
Steps to reproduce
Expected result
Image gets added
Actual result
Exception gets thrown:
There's a workaround for this issue, using the
Product::save
method instead of theProductRepositoryInterface::save
method, but because it's a deprecated method I would like to avoid this.Contribution checklist