Creating menu item, removing and adding again fails

The support for Joomla 2.5 ended on December 31, 2014. Possible bugs in Joomla 2.5 will not be patched anymore. This forum has been closed. Please update your website to Joomla 3.x

Moderator: ooffick

Forum rules
Please use the official Bug Tracker to report a bug: https://issues.joomla.org
User avatar
kennywickstrom
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu May 01, 2008 5:16 am
Contact:

Creating menu item, removing and adding again fails

Post by kennywickstrom » Mon Jun 28, 2010 3:29 pm

If I create a menu item, selecting only the type (single article), selecting a article, making it published and providing a name (e.g. Example). At this point, the menu item is visible in the frontend.

Now "trash" this menu item and follow the steps above. When saving, you get the error
Save failed with the following error: Another item with the same parent has this alias
I looked in db table jos_menu and found the first entry is still in the table.

Are removed menu items be retained in the database for future use? Or is this defect?

FYI, my J1.6 installation is from SVN and my latest update was this morning (28-Jun ~10:00 CDT).

mbabker
Joomla! Hero
Joomla! Hero
Posts: 2176
Joined: Sun Feb 28, 2010 8:26 pm

Re: Creating menu item, removing and adding again fails

Post by mbabker » Wed Jun 30, 2010 10:06 am

The trash can be compared to the Windows Recycle Bin in a sense that when you move items there, they still exist on the filesystem until it is emptied. You have to change the "- Select State -" view to Trash and empty it before making a new menu item with the same info. I believe this was submitted to the bug tracker and discussed, I just can't remember the outcome.
So long and thanks for all the fish.

Manually updating Joomla? See https://gist.github.com/mbabker/d7bfb4e ... 3607f89281

User avatar
kennywickstrom
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Thu May 01, 2008 5:16 am
Contact:

Re: Creating menu item, removing and adding again fails

Post by kennywickstrom » Wed Jun 30, 2010 2:24 pm

Thanks for the response. I understand the concept and will perform the necessary steps to clean up. However, many new users will not understand why the menu item failed due the alias especially since its not a required field in the form.

User avatar
kazal
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 104
Joined: Tue Jan 13, 2009 4:52 am
Location: Dhaka,Bangladesh.
Contact:

Re: Creating menu item, removing and adding again fails

Post by kazal » Mon Jan 24, 2011 7:17 am

Hello All Expert,
In a great problem in Joomla 1.6 creating a "Menu Item Alias"
I have a menu item like "About us" under main menu and also need same named menu item in footer position. For this case creating a Menu Item Alias named "About us" for footer nav.
But show this error

Code: Select all

Save failed with the following error: Another menu item has the same alias in Root. Root is the top level parent
Have any solution ??? :eek:

User avatar
sheiksumon
Joomla! Intern
Joomla! Intern
Posts: 74
Joined: Sun Oct 26, 2008 6:08 am
Location: Dhaka,Bangladesh
Contact:

Re: Creating menu item, removing and adding again fails

Post by sheiksumon » Mon Jan 24, 2011 7:34 am

Hey,

I create main-menu allies footer-menu same tittle same article.but save failed what's problem.

Code: Select all

Save failed with the following error: Another menu item has the same alias in Root. Root is the top level parent
Salekuddin Sheikh Sumon
Joomla Developer

User avatar
mamuna2m
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 104
Joined: Sun Aug 02, 2009 1:31 pm
Location: Web Developer House
Contact:

Re: Creating menu item, removing and adding again fails

Post by mamuna2m » Mon Jan 24, 2011 7:42 am

Hi Developer,
Joomla 1.6 problem creating a "Menu Item Alias"
I have a new menu item "About us" under "Main Menu" and also need same named menu item in footer position "Footer Menu". For this case creating a Menu Item Alias named "About us" for footer menu.

Image

But show this error :

Code: Select all

Save failed with the following error: Another menu item has the same alias in Root. Root is the top level parent
Please solved it.
You do not have the required permissions to view the files attached to this post.
Best regards, Md. Abdullah Al Mamun, Sr. Web Development Engineer
Cell: +8801741675667
E-mail: developermamun@gmail.com
Dhaka, Bangladesh, http://www.abdullah-al-mamun.info/

User avatar
sheiksumon
Joomla! Intern
Joomla! Intern
Posts: 74
Joined: Sun Oct 26, 2008 6:08 am
Location: Dhaka,Bangladesh
Contact:

Re: Creating menu item, removing and adding again fails

Post by sheiksumon » Mon Jan 24, 2011 9:49 am

This is most important issue, Please clearly solved this bug or this bug anybody solve help me.


Thank You...
Salekuddin Sheikh Sumon
Joomla Developer

User avatar
mamuna2m
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 104
Joined: Sun Aug 02, 2009 1:31 pm
Location: Web Developer House
Contact:

Re: Creating menu item, removing and adding again fails

Post by mamuna2m » Mon Jan 24, 2011 10:03 am

Please process it ASAP, How to solve it?
Thanks!
Best regards, Md. Abdullah Al Mamun, Sr. Web Development Engineer
Cell: +8801741675667
E-mail: developermamun@gmail.com
Dhaka, Bangladesh, http://www.abdullah-al-mamun.info/

User avatar
kazal
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 104
Joined: Tue Jan 13, 2009 4:52 am
Location: Dhaka,Bangladesh.
Contact:

Re: Creating menu item, removing and adding again fails

Post by kazal » Mon Jan 24, 2011 3:23 pm

Is this is a core joomla 1.6 problem ?
Can't resolved it by clear any kinds of "Clean Cache"
I was tried this few times but no result.
Please pay attention core developer of joomla 1.6
:o :o

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7985
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: Creating menu item, removing and adding again fails

Post by mcsmom » Tue Jan 25, 2011 12:54 pm

If you want to have the same item with the same alias you should use an alias link rather than creating a new item.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.

User avatar
sheiksumon
Joomla! Intern
Joomla! Intern
Posts: 74
Joined: Sun Oct 26, 2008 6:08 am
Location: Dhaka,Bangladesh
Contact:

Re: Creating menu item, removing and adding again fails

Post by sheiksumon » Wed Jan 26, 2011 9:46 am

Hey pagla,

I want just same title allies when save it but error >:(
Salekuddin Sheikh Sumon
Joomla Developer

User avatar
mamuna2m
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 104
Joined: Sun Aug 02, 2009 1:31 pm
Location: Web Developer House
Contact:

Re: Creating menu item, removing and adding again fails

Post by mamuna2m » Wed Jan 26, 2011 10:10 am

mcsmom wrote:If you want to have the same item with the same alias you should use an alias link rather than creating a new item.
Please follow this step and than find this problem :

Content -> Article Manager -> Add New Article -> Title: Mamun and Article Text: Sample text -> Save & Close
Menus -> Main Menu -> Add New Menu Item -> Menu Item Type: Single Article (Select) -> Menu Title: Mamun -> Select Article: Mamun (Select / Change) -> Save & Close
Menus -> Top Menu -> Add New Menu Item -> Menu Item Type: Menu Item Alias (Select) -> Menu Title: Mamun -> Menu Item: Mamun -> Save & Close

Than Error

Code: Select all

Save failed with the following error: Another menu item has the same alias in Root. Root is the top level parent

Please solve this problem :(

[*]Please see my attach image[/b]
You do not have the required permissions to view the files attached to this post.
Best regards, Md. Abdullah Al Mamun, Sr. Web Development Engineer
Cell: +8801741675667
E-mail: developermamun@gmail.com
Dhaka, Bangladesh, http://www.abdullah-al-mamun.info/

User avatar
mamuna2m
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 104
Joined: Sun Aug 02, 2009 1:31 pm
Location: Web Developer House
Contact:

Re: Creating menu item, removing and adding again fails

Post by mamuna2m » Wed Jan 26, 2011 10:22 am

Please anyone solve this?
Best regards, Md. Abdullah Al Mamun, Sr. Web Development Engineer
Cell: +8801741675667
E-mail: developermamun@gmail.com
Dhaka, Bangladesh, http://www.abdullah-al-mamun.info/

User avatar
kazal
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 104
Joined: Tue Jan 13, 2009 4:52 am
Location: Dhaka,Bangladesh.
Contact:

Re: Creating menu item, removing and adding again fails

Post by kazal » Wed Jan 26, 2011 10:26 am

mamuna2m wrote:
mcsmom wrote:If you want to have the same item with the same alias you should use an alias link rather than creating a new item.
Please follow this step and than find this problem :

Content -> Article Manager -> Add New Article -> Title: Mamun and Article Text: Sample text -> Save & Close
Menus -> Main Menu -> Add New Menu Item -> Menu Item Type: Single Article (Select) -> Menu Title: Mamun -> Select Article: Mamun (Select / Change) -> Save & Close
Menus -> Top Menu -> Add New Menu Item -> Menu Item Type: Menu Item Alias (Select) -> Menu Title: Mamun -> Menu Item: Mamun -> Save & Close

Than Error

Code: Select all

Save failed with the following error: Another menu item has the same alias in Root. Root is the top level parent

Please solve this problem :(

[*]Please see my attach image[/b]
Thanks a lot @mamuna2m

I am also facing this kinds of problem in joomla 1.6. We are creating this types of "Menu Alias" in Joomla 1.5.
Relay need this solve in proper way.

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7985
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: Creating menu item, removing and adding again fails

Post by mcsmom » Wed Jan 26, 2011 1:15 pm

GO to the menu manager.
Instead of selecting internal link, select alias.
This will give you a list of all existing menu items.
Select your desired duplicate link from the list.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.

pitchinnate
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Jun 25, 2009 5:34 pm

Re: Creating menu item, removing and adding again fails

Post by pitchinnate » Thu Feb 03, 2011 3:26 am

I think I figured it out. You use an Alias and you just can't have the same Alias. It really doesn't even matter what you put cause it will pull the alias from the menu item you are pointing to.

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7985
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: Creating menu item, removing and adding again fails

Post by mcsmom » Thu Feb 03, 2011 10:04 am

Correct, the point of that menu type is to avoid "duplicate content meaning that one page has one URL instead of several different ones. You don't want that because it potentially hurts you with search engines.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.

itcomtech
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Feb 05, 2011 6:09 pm

Re: Creating menu item, removing and adding again fails

Post by itcomtech » Sat Feb 05, 2011 6:19 pm

Hello Guys, this is my first post on this forum but I've got solution for "kazal, sheiksumon, mamuna2m, sheiksumon" issue.

Guys I know exactly what problem you are having. I had the same issue but I've got solution for that.

The Answer its quite simple.
-Log in to your MYSQL DateBase using myPHP or from Cpanel.
-Search through your main database for xx_menu
-Make sure you can view all files there so max your view at the bottom to 1000 row(s)per page.

Now search for the files you are having problem with and delete. Job Done!

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7985
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: Creating menu item, removing and adding again fails

Post by mcsmom » Sun Feb 06, 2011 12:17 am

No you certainly do not need to do that and it's asking for trouble since those menu links may also be appearing in the module_menu table.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.

pooja_cs
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Wed Jan 19, 2011 11:00 pm

Re: Creating menu item, removing and adding again fails

Post by pooja_cs » Tue Feb 08, 2011 2:54 am

Hello all,

I have upgraded my website from 1.5.22 version to 1.6 and menu item named "Home" are not upgraded, so I am trying to add them manually, so my question is if in 1.5.22 the menu item type is Front Page Blog Layout then, what menu type should I put in 1.6.....I am getting 404 error, as I don't have Home page. Please someone help me out.

Thanks in advance.

XtremeX
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Fri Sep 23, 2005 3:05 pm

Re: Creating menu item, removing and adding again fails

Post by XtremeX » Tue Feb 08, 2011 12:18 pm

Im getting the same error even when linking to a menu alias

I Created a menu item to login in a main menu.
Then I tried to create a link to that menu item in a footer menu using the "Menu Item Alias" type.

I get the error message above.

Is anyone else getting the same results? This forces me to have 2 seperate aliases for the same item

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7985
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: Creating menu item, removing and adding again fails

Post by mcsmom » Tue Feb 08, 2011 1:25 pm

pooja ... Featured

XtremeX .... so you are only having this issue on alias types? Do you have error reporting on maximum and can you give us the data from that please? Are you positive you are not using the same alias as the original menu item?
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.

johnnybgoodwin
Joomla! Intern
Joomla! Intern
Posts: 65
Joined: Fri Apr 27, 2007 3:18 pm

Re: Creating menu item, removing and adding again fails

Post by johnnybgoodwin » Tue Feb 08, 2011 5:42 pm

Re: "Save failed with the following error: Another menu item with the same parent has this alias"

There seems to be a problem with the system. I'm working on a new 1.6 site.

I get the same error, above, when simply trying to rename a menu item.
The menu item is a link to a Joomla! standard contact entry. (Single contact). Trying to change menu item from "Contact Me" to "Contact Us" I get the error.
Thinking another site dev. may have tried the "Us" option and trashed it, and seeing the above comment about items in trash affecting how you can name a new menu item, I went looking for the trash. Where is it?!!
The "Trash" button is apparently for trashing a menu item, although in the help file that button is skipped in the description of functions. (Another oversight that should be fixed, no?)
So how do I get to the menu item trash, to fully delete a menu item, assuming that item exists in trash, so that I can rename the existing item without a conflict?

Keep working on it. I'll come back to J 1.6 in about 6 to 9 months!

John
Sing all the earth

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7985
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: Creating menu item, removing and adding again fails

Post by mcsmom » Tue Feb 08, 2011 6:43 pm

Once you have trashed, use the filters at the top of the grid to select just the trashed items. Then you will get a delete button and be able to delete them completely.

Also when editing a saved item make sure you edit the alias field not just the title field.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.

johnnybgoodwin
Joomla! Intern
Joomla! Intern
Posts: 65
Joined: Fri Apr 27, 2007 3:18 pm

Re: Creating menu item, removing and adding again fails

Post by johnnybgoodwin » Tue Feb 08, 2011 8:15 pm

OK, so the original problem is back: There is nothing that has been trashed, and the menu (alias) cannot be renamed.
Just returns an error saying "Save failed with the following error: Another menu item with the same parent has this alias"
I did attempt to change the alias to correspond to the new menu item title.

Hmmm.......
Sing all the earth

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7985
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: Creating menu item, removing and adding again fails

Post by mcsmom » Wed Feb 09, 2011 3:18 am

Ok would you mind using jing or somethign to actually show me step by step what you are doing?
It's partly confusing because of the two different uses of the term alias.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.

johnnybgoodwin
Joomla! Intern
Joomla! Intern
Posts: 65
Joined: Fri Apr 27, 2007 3:18 pm

Re: Creating menu item, removing and adding again fails

Post by johnnybgoodwin » Wed Feb 09, 2011 4:13 am

Here are screen shots of the three step process,
1. Open menu item:
existing_menu_item.jpg
2. Type in new name and new alias
planned_new_menu_name.jpg
3. Press Save and Close - returns an error.
error_message.jpg
You do not have the required permissions to view the files attached to this post.
Sing all the earth

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7985
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: Creating menu item, removing and adding again fails

Post by mcsmom » Wed Feb 09, 2011 4:23 am

Do you have the sample data installed?
There is a link with the alias contact-us in the fruit shop menu.
What happens if you try contact-me?

Update:
Yes, i can reproduce the problem if I make that Single Content menu link have no parent (parent=menu root) and change the alias to match that in the fruit shop menu.
So this is really expected behavior because if there are two aliases at menu root that are the same, then we don't know which page to render when going to the url (contact-us.html).
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.

johnnybgoodwin
Joomla! Intern
Joomla! Intern
Posts: 65
Joined: Fri Apr 27, 2007 3:18 pm

Re: Creating menu item, removing and adding again fails

Post by johnnybgoodwin » Wed Feb 09, 2011 3:54 pm

Hi again

I am using the fruitshop template, beez5, but not sample data (sample data was never installed). There are no menus pre-installed and no other menus with the same name/alias. I only have three menu items, Home, Testimonials and Contact.
(url for site is www.paintingbygerald.com)
In 1.5 if I create a new menu item it defaults to last place and takes a first level place on the menu tree.

It seems that the same happens in 1.6 - the new menu item is not a sub-menu of anything. It points to a url and has a seemingly unique alias. That said, it is "contact-us" as an alias which generates the error. We originally had "contact-me" and wanted to use "contact-us". "contact-me" worked, as does "contact".
It may make sense code-wise, but doesn't make any sense on the user end that a menu alias I've never used is a duplicate and can't be used. Also there are no trashed menu items, so nothing I can fix to make it work as far as I can tell.
Cheers
John
Sing all the earth

User avatar
mcsmom
Joomla! Exemplar
Joomla! Exemplar
Posts: 7985
Joined: Thu Aug 18, 2005 8:43 pm
Location: New York
Contact:

Re: Creating menu item, removing and adding again fails

Post by mcsmom » Thu Feb 10, 2011 12:10 am

Do me a fovr and look in your data base and make sure there are no extra menu items there.
So we must fix our vision not merely on the negative expulsion of war, but upon the positive affirmation of peace. MLK 1964.
http://officialjoomlabook.com Get it at http://www.joomla.org/joomla-press-official-books.html Buy a book, support Joomla!.


Locked

Return to “Joomla! 2.5 Bug Reporting”