-
Notifications
You must be signed in to change notification settings - Fork 9.4k
After upgrade to 2.1.3 url rewrite problem multi store #8227
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
Comments
Unfortunately, I could not reproduce the issue as you described it on 2.1.3 version. Please provide the detailed steps we must follow to reproduce this issue.
|
I still could not reproduce the issue. Steps to reproduce:
Pay attention: Created products are reacheable on frontend by next urls: Product 1: Product 2:
Our products are reacheable on frontend by next URLs: Product 1: Product 2: So, all works properly. Aditional questions:
|
Thanks Thanks in advance |
@naydav is there a fix in magento 2.1.4 ? |
@naydav Same problem in Magento 2.1.4 ! |
I have similar problems. It seems to be related to updating the website attribute of the product. I have a product with 4 url_key values set at storeview scope and 2 url_key values at default scope. At first the product seems oke. All 6 url_keys are stored in the url_rewrite table and all is fine. So triggering an update of this 'website' attribute is causing url_rewrite entries to dissappear somehow. |
I developed a solution that can regenerate the rewrites using the CLI, which fixes the above for me. Contact me if you need it. |
I need it thlassche! |
@heresh80 Can't find your e-mail, please drop me an e-mail on [email protected] |
Hi, I'm using magento 2.1.7 with 2 stores and it happens to me to products that are in both websites. |
We have 2 M2 instances where we are getting this issue - A product on the M2 instance is allocated to two websites, it has not been modified for nearly a year (the timestamps on catalog_product_entity) and was working fine on both sites. At some point recently the URL of the product has reverted to catalog/product/view/id/1083/s/..... form on ONE of the websites, on the other it is still fine. Checking the url_rewrite table shows that the entries for this product on the affected site are all gone. It sounds like our issue is related to this open issue but the rewrites are being deleted without the product being updated - does anyone have any comments? |
Same here! In our case, the store has been migrated from M1 using the data migration tool. We haven’t yet checked on a fresh M2 install with sample data… |
Hi @philipvandebriel. Thank you for your report. The fix will be available with the upcoming 2.2.4 release. |
Hi @philipvandebriel. Thank you for your report. The fix will be available with the upcoming 2.3.0 release. |
@magento-engcom-team those commits you refer to seems to be only test cases rather than the actual fix? I'm trying to backport this to 2.1.12 also... |
@OZZlE, quoting myself from the associated PR.
|
@adrien-louis-r it was another bug in <2.3 Looks like a bug in catalog-search module. It uses websiteId instead storeId when building tmp search table. Here is diff comparing to 2.2.3: Patching this fixed the issue with missing products in grid.
|
@magento-engcom-team that is not the fix, that is just an integration test. Could you refer us to the actual commit that fixes it? |
Anyone looking to backport this issue, the workaround that worked for me with Magento 2.1.6 was commeting the line 144 of file vendor/magento/module-catalog-url-rewrite/Model/ProductUrlRewriteGenerator.php or app/code/Magento/CatalogUrlRewrite/Model/ProductUrlRewriteGenerator.php, depends on your folder structure Still trying to find any problems with this approach, none so far |
|
@peterjaap yes, exactly that one. |
I am experiencing this on 2.2.4. Can anyone confirm if this issue has been resolved in a later release? |
Fixed: MAGETWO-64191 [GITHUB] Url rewrite for product is broken after using massaction #8227 MAGETWO-96411 [2.3.x] Default addresses not selected when checking out from cart MAGETWO-96849 [2.3.x] Money are refunded to gift card during partial refund when it's not required MAGETWO-96846 [2.3.x] Anchor categories are not showing products after enabling subcategories MC-5573 Refactoring tests. Improve specified test cases. MC-10934 Tests failures CreationScheduledUpdateForStagingDashboardTest and StorefrontPurchaseProductWithCustomOptions MAGETWO-91676 related data missing in order rest api
This is the easiest and best solution: https://www.ubertheme.com/magento-tutorials/fixing-url-rewrite-after-migrating-magento-2/ |
I am facing the same issue for the category after upgrading Magento 2.4.0 to Magento 2.4.1 |
Preconditions
Steps to reproduce
Expected result
Actual result
If we check the url rewrite table in the database then all the url's are deleted with product id 7775
If we save the product nothing change and can not found the urls anymore in de url rewrite table.
If we save a product (from magento 2.1.2) and don't change the url then the rewrite-url is ok.
We use multistore with url store code.
The text was updated successfully, but these errors were encountered: