-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Magento 2.3 Fix Notice and Exception while adding image to product programmatically #18952
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.3 Fix Notice and Exception while adding image to product programmatically #18952
Conversation
Hi @progreg. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
…to product programmatically #18952 - Fixed docblocks
@slavvka, done |
Hi @slavvka, thank you for the review. |
Hi @progreg. Thank you for your contribution. |
…to product programmatically #18952
…to product programmatically magento#18952 - Fixed docblocks
Fixed Issues (if relevant)
Preconditions
Magento Version 2.3
PHP Version 7.2
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