Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
1) Disable pathauto (Never seen this with pathauto enabled, so it may be bypassing the path_redirect_nodeapi logic that causes this, or just wasn't unlucky before.)
2) Create a node with path 'one'
3) Edit node to path 'two'
4) Edit node to path 'one'
5) Edit node to path 'three'
=> Duplicate entry for path one, as it successfully saved a redirect for 'one' after step 3, then tries and resaves it it in 5 without checking if it exists.
Solution: see if entry already exists before saving.
Comments
Comment #1
merauluka CreditAttribution: merauluka commentedI confirm this error is occurring on my site as well.