0

I have migrated data from Magento 1.9 to Magento 2.4. All things is working well. But when in open any categories and open Product in Category tab -> then click on reset filter -> search a product and select and then save it it will show me this error.

enter image description here

I have tried this https://github.com/olegkoval/magento2-regenerate_url_rewrites extension but it doesn't work.

I have checked the db there is only one url in request_path column in url_rewrite table.

Can any one point out what is the issue and how to solve it.

Any help is appreciated.

1 Answer 1

0

This is a logic problem, URL are generated from product names, and URL must be uniques. From admin panel take the products that are causing the problem, go to Search Engine Optimization section and give a custom value to the URL key field

10
  • Thanks for the response but if i have 10k producst in store so it would be difficult to do it for every product can you suggest anything else.
    – Prits
    Apr 28, 2022 at 10:14
  • Aren't they just 11 products as shown in the error message screen? Apr 28, 2022 at 10:16
  • yes in this ss it is 11 if in future there is more error then i have to do it manually everytime. so that's why i asked for all products
    – Prits
    Apr 28, 2022 at 10:49
  • have you consider adding the sku to the product name? Try with one product to see if it disappear from the errors, if it works you can create a script that do it for all products Apr 28, 2022 at 10:54
  • So you mean i need to create a script which will add sku in Product -> SEO -> url key just before the .html tag and then run indexer reindex then all the url is diffrent. And one more thing i just need to update url_rewrite table or any other table also ?
    – Prits
    Apr 28, 2022 at 10:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.