Warning: Save failed. Another menu item has the same alias

What?
A quick article for Joomla CMS version 3.x on resolving a menu item alias conflict:
Menu Item has the same alias
Warning
Save failed with the following error. Another menu item has the same alias in Root. Root is the top level parent

You will need:
  • Access to the Joomla Administration Panel (to check for and remove expired menu items)
  • A good database administrator who is comfortable with making changes to the database

Why?
We have a page describing the company that we would want entitled "about" or "about-us" but these were already created along the way and then deleted. The system is still storing the offending menu items somewhere.

How?
The fix that I use involves a change to #__menu table in the database for that website. The example used here will be to create an about-us page but I already have two items using the alias "about" and "about-us":
  1. Login to the Joomla Admin Panel and ensure any similar menu items are accounted for. Remove them if they are not used.
  2. Create the menu item that caused the warning but give it a temporary alias (eg. for "about" give it the alias "about_new")
  3. Login to your database and browse to the #__menu table
  4. Search for any values in the `alias` column that match the term (eg. for "about" do SELECT * FROM #__menu WHERE alias LIKE '%about%' where #_ is the table prefix)
  5. Instead of deleting, I change the existing menu item alias from "about-us" to "about-us2" as well as any similar `path` value.
  6. Change the item you created in step #2 (eg. "about_new" to "about-us"), also change the "path" value to match as this will generate your URL.
  7. Done


Credit where Credit is Due:


Feel free to copy, redistribute and share this information. All that we ask is that you attribute credit and possibly even a link back to this website as it really helps in our search engine rankings.

Disclaimer: The information on this website is provided without warranty and any content is merely the opinion of the author. Please try to test in development environments prior to adapting them to your production environments. The articles are written in good faith and, at the time of print, are working examples used in a commercial setting.

Thank you for visiting and, as always, we hope this website was of some use to you!

Kind Regards,

Joel Lipman
www.joellipman.com

Related Articles

Joes Revolver Map

Joes Word Cloud

about   caused   menu   database   create   admin   existing   well   change   failed   page   match   using   same   created   prefix   another   about%   joomla   similar   panel   column   items   item   give   used   them   path   term   temporary   also   already   select   values   generate   root   deleting   save   accounted   value   instead   login   warning   where   ensure   browse   remove   alias   step   table   JoelLipman.Com

Accreditation

Badge - Certified Zoho Creator Associate
Badge - Certified Zoho Creator Associate

Donate & Support

If you like my content, and would like to support this sharing site, feel free to donate using a method below:

Paypal:
Donate to Joel Lipman via PayPal

Bitcoin:
Donate to Joel Lipman with Bitcoin - Valid till 8 May 2022 3QnhmaBX7LQSRsC9hh6Je9rGQKEGNQNfPb
© 2021 Joel Lipman .com. All Rights Reserved.