"Duplicate entry" error for the feed - after manually changing the alias for an item

Created on 22 October 2008, over 16 years ago
Updated 16 May 2025, 3 days ago

This problem arises when you uncheck the Automatic alias box and type a new alias in. The feed alias doesn't get modified.

This means that you can create a new item (e.g. node) which will have the same generated URL alias as the original alias of the item (node) whose alias we renamed. The node aliases are fine, but pathauto will try to create an alias for the feed, only because the old feed alias didn't get renemaed we have a duplicate.

This is not as unlikely a use case as it may sound - I was manually replacing one node by a new one because I wanted to change the node type, so I renamed the alias for the old one so that the new node would get its new alias automatically --> error.

Full error text follows:

user warning: Duplicate entry 'xxxxxx/feed-en' for key 2 query: INSERT INTO url_alias (src, dst, language) VALUES ('node/25/feed', 'xxxxxx/feed', 'en') in /home/gelstle/public_html/general-ad101/modules/path/path.module on line 112.

This looks similar to one or two other issues in the queue but there may be some differences.

πŸ› Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom gpk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024