After upgrading a Magento CE 2.1 instance to 2.2 just released, I experienced this error for the first time.
This error message faced up because one of our categories had a duplicated URL Rewrite registry.

“Item (Magento\Catalog\Model\Category\Interceptor) with the same ID XX already exists”

First of all, you need to execute the following SQL query in order to check if the category has duplicated URLs:

Probably this query will throw more than one registry. As a result, please follow this directives:

  1. Go to Admin Panel > Marketing > URL Rewrites.
  2. Filter by those “url_rewrite_id” values from the query above that you don’t want to keep.
  3. After you deleted the registries, clear you Magento cache and the error should be gone.

I hope this solution works for you.


Leave a comment