Biblio
Request Type:
Bug Fix
Forums:
Issue/Request:
Hello,
Could you please help me fix a problem? I manually input a new Publication entry (see 2018). Then I edited it and tried to save the changes. Instead, I got the error message “Alias is already in use.” I see that there is a duplicate publication entry. I get the same Alias error message when I try to delete either entry, or when I try to save after making no changes. The same happens using both Safari or Chrome.
Thank you,
Heather
Hi Heather,
This error arises when a duplicate command to create new content is accidentally submitted, by accidentally double-clicking the submit button, or if the connection becomes interrupted and the user refreshes the page to submit again. What happens in these situations is that Drupal creates two identical pieces of content with the same url alias, which is normally impossible.
If this duplicate content were submitted normally, one after the other, the second page would automatically have a “-0” added to the end of its url. On the other hand, if someone tried to manually assign a piece of content a url that was already in use, it would return an error and not allow the user to save their changes. Submitting the requests “simultaneously” bypasses the process that normally checks for that url alias conflict, but this check is then activated any time you try to edit the page.
I was able to remove the duplicate piece of content for you. If this happens to you again in the future, there are a few different methods to removing th duplicate content: The easiest is to delete the content directly from the content list in the administrator menu, rather than using the delete button in the individual post’s edit menu. You can also go to the post’s “url path settings” uncheck “automatic alias”, and manually assign a new url alias to the duplicate to delete it. You may need to save the changes first.
I hope this explanation was helpful! Let me know if you need any clarification.
Best,
-Zach