MySQL throws errors related to an index requiring a unique key on store_id It was a little unclear why and when it was generating those urls and inserting them into the `url_rewrite` table, so we had to step through the code to find when these functions were getting called.Īs it turned out, the magento-catalog-url-rewrite module has observers that kicked off this process based on these events.Ĭatalog_product_import_bunch_delete_after The actual problem is that Magento is incorrectly assigning the ‘store_id’ of the current store to url rewrites that are part of the original ‘Root Catalog’ category. This is the category with entity_id “1”. Module where the error actually presents itself. This problem can be traced into the vendor/magento/module-catalog-url-rewrite This should allow you to create products with categories. If you try to subsequently save the product, with or without additional categories, it will still throw the same error. To first get around that, try setting these two keys in your request: 1. If you are using the API to import products with a category on it, you may get an error that reads something simply like: Bad Request A workaround when using the API or importing products You can find additional information on this issue on Stack Overflow and GitHub: URL key for specified store already exists The following error is thrown when trying to save categories on the products that were imported. We have seen this bug present itself in a variety of different ways. Tt seems mostly related to multi-store Magento 2 instances with products that have been either created via the API or the native product importer. We recently helped a client out with a Magento 2.x bug that has been hanging out in the open issues on GitHub for awhile. ** Please note that this module will not be compatible with versions of Magento 2.1.8 and above.ĭownload the HE UrlkeyRewrite Module The Issue with url_rewrites in Magento 2 There is also a downloadable module that you can use for your store. This article details a code fix for the Magento 2 bug where you see the error “URL Key for specified store already exists” when you save products and/or categories. Swatting the proverbial fly one tutorial at a time. We have provided direct link full setup of the game.Magento 2 bug fixes.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |