-
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
Duplicate Simple Product Throws Error: Undefined offset: 0 in SaveHandler.php on line 122 #11532
Comments
Only able to replicate error on simple products that were created before version 2.2. Products I had created under 2.18 won't duplicate. New products created under 2.2 successfully duplicate. |
Same issue here for the M2.2 can not duplicate the products. After click the " save&duplicate" Notice: Undefined offset: 0 in /var/www/wowlla.com/vendor/magento/module-catalog/Model/Category/Link/SaveHandler.php on line 122 |
@lee586, thank you for your report. |
Same issue on 2.2.0... |
The same problem to me. |
same problem here 2.2.0 |
here is the solution for duplicate product : replace the tset in mergeCategoryLinks function by this : if ($key === false) { } |
When i change the code the result is: To resolve this conflict, you can either change the value of the URL Key field (located in the Search Engine Optimization section) to a unique value, or change the Request Path fields in all locations listed below:
|
@keanass , This show for me http error 500 and No data to save. Error log, PHP Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) in /vendor/magento/module-catalog/Model/Category/Link/SaveHandler.php on line 133 I have magento 2.2 same problem duplicate Simple Product doesn't work. |
do anybody have a decision for this problem? |
Does anyone knows if is this fixed in 2.2.1 ? I'm also facing this issue in 2.2.0 |
Here we meet with anther issue "Invalid option value" when save the products at MCE 2.2.1 |
The issue has been fixed and delivered to 2.2-develop branch. Will be available with 2.2.2 release |
@sitiodocanoamarelo Same issue here on a 2.2.1 . I confirm the fix given by @keanass works for us. We also have the "follow-up" error about URL rewrites - not sure if that is related. Dealing with imported products I suspect it has something to do with the store_id of relevant attribute_values. Btw from my experience and code reading, ugly workaround is to remove the product from all categories (or all but one?). |
Hi @lee586. Thank you for your report.
The fix will be available with the upcoming patch release. |
configurable products ......Save and Duplicated product not working?? Throws the following error: do you have any solution ?? |
still broken in 2.3, fix not working. |
Preconditions
Steps to reproduce
Expected result
Actual result
Notice: Undefined offset: 0 in /home/store/public_html/vendor/magento/module-catalog/Model/Category/Link/SaveHandler.php on line 122
The text was updated successfully, but these errors were encountered: