J3 Issue ?
avatar EricdeWaal
EricdeWaal
14 Aug 2019

Steps to reproduce the issue

Multi-language site, 2 languages, 2 menus, some associated articles and menu items, Modern Routing/remove numbers

Expected result

When switching between languages, associated article in selected language is shown.

Actual result

It is, but for 2 items only, with a line on top of the the page:
"Notice: Undefined index: option in /libraries/src/Component/Router/Rules/NomenuRules.php on line 104"
Edit: it also happens if the 2 menu-items involved are clicked directly, without switching language.

Only occurs with Modern routing, not with Legacy routing

System information (as much as possible)

Linux, Apache2/litespeed, 10.2.25-MariaDB-cll-lve, PHP 7.3.7, Joomla 3.9.10 and 3.9.11, possibly earlier versions as well

Additional comments

Google shows 3 pages of results with above error, must have been there some time.
It seems to be an old bug, see #15823 and #6488

avatar EricdeWaal EricdeWaal - open - 14 Aug 2019
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Aug 2019
avatar EricdeWaal EricdeWaal - change - 14 Aug 2019
The description was changed
avatar EricdeWaal EricdeWaal - edited - 14 Aug 2019
avatar EricdeWaal EricdeWaal - change - 14 Aug 2019
The description was changed
avatar EricdeWaal EricdeWaal - edited - 14 Aug 2019
avatar EricdeWaal EricdeWaal - change - 14 Aug 2019
The description was changed
avatar EricdeWaal EricdeWaal - edited - 14 Aug 2019
avatar SharkyKZ
SharkyKZ - comment - 14 Aug 2019

Do you have any "System Links" type menu items (external URLs, headings, separators, menu item aliases)?

avatar EricdeWaal
EricdeWaal - comment - 14 Aug 2019

No, all menu-items display articles, plus 2 or 3 separators under which are sub-items


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

avatar Gitjk
Gitjk - comment - 14 Aug 2019

Google lists a number of Joomla sites showing this notice, but I didn't see anything that all of them have in common. Did you try the 'Rebuild' button in the 'Menus' view already?


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

avatar infograf768
infograf768 - comment - 14 Aug 2019

I looked at one of these sites on google and it has this Notice when we access to the home page with a non-sef url of the type index.php?option=com_content&view=featured&Itemid=101
but this has been solved since then as the site has sef on and is/was anyway monolingual.

avatar infograf768
infograf768 - comment - 14 Aug 2019

@EricdeWaal
Can you try to switch to Protostar template and test?

avatar EricdeWaal
EricdeWaal - comment - 14 Aug 2019

@Gitjk Tried to rebuild, no difference
@infograf768 Protostar shows same message


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

avatar EricdeWaal
EricdeWaal - comment - 14 Aug 2019

It looks like this is an old bug: #15823


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

avatar EricdeWaal
EricdeWaal - comment - 14 Aug 2019

And it seems to happen on sites with only one language as well


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

avatar alikon
alikon - comment - 14 Aug 2019

i'm unable to reproduce without 3dp extensions what are you using ? smells like 3dp issues to me

avatar EricdeWaal EricdeWaal - edited - 14 Aug 2019
avatar EricdeWaal EricdeWaal - change - 14 Aug 2019
The description was changed
Title
Modern routing causes "Notice: Undefined index:" on multilanguage sites
Modern routing causes "Notice: Undefined index: option in /libraries/src/Component/Router/Rules/NomenuRules.php on line 104"
avatar EricdeWaal EricdeWaal - edited - 14 Aug 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 14 Aug 2019
Labels Added: J3 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 14 Aug 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 14 Aug 2019
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - edited - 14 Aug 2019
avatar EricdeWaal EricdeWaal - change - 18 Aug 2019
The description was changed
avatar EricdeWaal EricdeWaal - edited - 18 Aug 2019
avatar Hackwar
Hackwar - comment - 20 May 2021

I can't replicate the issue, but based on a codereview I did a change. @EricdeWaal can you check if the change in #34049 fixes this for you? And if it does, we need to merge also #34050 for Joomla 4.

avatar richard67 richard67 - change - 20 May 2021
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2021-05-20 17:20:36
Closed_By richard67
avatar richard67 richard67 - close - 20 May 2021
avatar richard67
richard67 - comment - 20 May 2021

Closing as having a pull request. Please test #34049 for Joomla 3, and if possible also PR #34050 for Joomla 4. Thanks in advance.

Add a Comment

Login with GitHub to post a comment