No Code Attached Yet Information Required
avatar prh47bridge
prh47bridge
9 Aug 2022

Steps to reproduce the issue

Create a menu item (the type I used was for a single article)
Give it the title "The Rhône from Sea to Source"
Do not set a parent item
Save it
Modify it by setting a parent item
Save it again

Expected result

Both saves should work

Actual result

The second save fails claiming that the alias, "the-rhone-from-sea-to-source", is already being used.

System information (as much as possible)

Joomla 4.1.5
PHP 7.4.30
MySql 5.7.39

Additional comments

Joomla is failing to notice that the menu item being saved is the one with the alias. If I give the menu item the title "The Rhone from Sea to Source" it works correctly.

avatar prh47bridge prh47bridge - open - 9 Aug 2022
avatar prh47bridge prh47bridge - change - 9 Aug 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 9 Aug 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 9 Aug 2022
avatar prh47bridge
prh47bridge - comment - 9 Aug 2022

Note that changing the title of the item from "The Rhone from Sea to Source" (i.e. losing the accent on the o" doesn't make a difference. However, if I use that title to create the item I can save it as often as I want.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38429.

avatar ReLater
ReLater - comment - 9 Aug 2022

I can not confirm this issue. I followed the steps and could save the menu item several times without any warnings.

avatar richard67
richard67 - comment - 9 Aug 2022

@prh47bridge What’s your backend language? And is the PHP extensions “intl” for internationalization (e.g. transliteration) enabled?

avatar chmst chmst - change - 9 Aug 2022
Labels Added: Information Required
avatar chmst chmst - labeled - 9 Aug 2022
avatar prh47bridge
prh47bridge - comment - 9 Aug 2022

On further investigation, it only happens if the "modify it" step involves changing the parent item. Other changes to the menu item don't cause the problem.

My backend language is English (United Kingdom).

php-intl was not installed. I have now installed and enabled it but it has made no difference.

avatar prh47bridge
prh47bridge - comment - 10 Aug 2022

Just to add the specifics in case it is relevant, I created the menu item and forgot to assign a parent item. I then went in again to edit it and assign the correct parent. It refused to save. I deleted the menu item (trash and empty trash) and then tried again, assigning it to the correct parent when I created it. That worked. I can reliably reproduce the issue on my system.

avatar brianteeman
brianteeman - comment - 10 Aug 2022

I can't replicate it either - sorry

avatar prh47bridge prh47bridge - change - 10 Aug 2022
The description was changed
avatar prh47bridge prh47bridge - edited - 10 Aug 2022
avatar prh47bridge
prh47bridge - comment - 10 Aug 2022

It is more specific than I thought! It seems to depend on which parent item I choose. I can move the menu item to some parents without a problem, others produce this error. I will add some debugging to see if I can figure out what's going on.

avatar brianteeman
brianteeman - comment - 10 Aug 2022

are you 10000% certain that you dont have any trashed menu items?

avatar prh47bridge prh47bridge - change - 10 Aug 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-08-10 11:54:03
Closed_By prh47bridge
avatar prh47bridge prh47bridge - close - 10 Aug 2022
avatar prh47bridge
prh47bridge - comment - 10 Aug 2022

Oops! For some reason I didn't find the trashed item when I searched for it. It does exist. My bad. Sorry.

Add a Comment

Login with GitHub to post a comment