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: Please note that the information provided on this website is intended for informational purposes only and does not represent a warranty. The opinions expressed are those of the author only. We recommend testing any solutions in a development environment before implementing them in production. The articles are based on our good faith efforts and were current at the time of writing, reflecting our practical experience 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

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

Ethereum:
Donate to Joel Lipman with Ethereum 0xb038962F3809b425D661EF5D22294Cf45E02FebF
© 2024 Joel Lipman .com. All Rights Reserved.