J4 Issue ?
avatar infograf768
infograf768
23 Jul 2018

In php log: Undefined index: parent_id in /administrator/components/com_menus/Model/ItemModel.php on line 1401

Steps to reproduce the issue

Edit a menu item. Change its menu.
menu_parentid

  1. The Parent Item is not automatically populated by Menu Item Root although the menu item is saved such.
  2. Also: the Ordering still displays the items belonging to the former changed menu.

This does not happen in 3.x

avatar infograf768 infograf768 - open - 23 Jul 2018
avatar joomla-cms-bot joomla-cms-bot - change - 23 Jul 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 23 Jul 2018
avatar infograf768
infograf768 - comment - 23 Jul 2018

Maybe due to
screen shot 2018-07-23 at 10 52 10

avatar infograf768
infograf768 - comment - 23 Jul 2018

When debug is on
screen shot 2018-07-23 at 10 56 38

@dgrammatiko

avatar dgrammatiko
dgrammatiko - comment - 23 Jul 2018

Well, the script expects that the ajax will return a valid json but due to php error we get html and there is no conditional to handle this case. But even if such a fallback existed the page is still kinda unusable I guess without that input value (is that field mandatory?)

avatar infograf768
infograf768 - comment - 23 Jul 2018

If I set the field as required, I get the same error. In fact worse as we are in a loop and it's impossible to save the menu item.

avatar franz-wohlkoenig franz-wohlkoenig - change - 23 Jul 2018
Category com_menus
avatar franz-wohlkoenig franz-wohlkoenig - change - 23 Jul 2018
Status New Discussion
avatar brianteeman brianteeman - change - 30 Jul 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 30 Jul 2018
avatar roland-d
roland-d - comment - 1 Aug 2018

@infograf768

Also: the Ordering still displays the items belonging to the former changed menu.

For me this works like this in J3 as well. The ordering is never updated when I change the menu.

image

image

For the other issue we are going to post a PR.

avatar franz-wohlkoenig franz-wohlkoenig - change - 1 Aug 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-08-01 14:44:04
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 1 Aug 2018
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 1 Aug 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 1 Aug 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 1 Aug 2018

closed as having Pull Request #21348

Add a Comment

Login with GitHub to post a comment