?
avatar simkea
simkea
23 Feb 2017

Steps to reproduce the issue

i have a menu from level1 to level 4 and i have placed an module mod_menu
only for level 4 -> FirstLevel 4 and LastLevel 4

if the menu closed in frontend, i get now this notice...

Expected result

No Notice Message and no Menuitem is shown...

Actual result

Notice: Undefined offset: 2 in /modules/mod_menu/helper.php on line 60
[SOLUTION] add an check for this: isset($item->tree[$start - 2]) on line 60

thx

avatar simkea simkea - open - 23 Feb 2017
avatar joomla-cms-bot joomla-cms-bot - change - 23 Feb 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 23 Feb 2017
avatar zero-24
zero-24 - comment - 23 Feb 2017

@simkea can you send your changes as pul request against staging?

See here if you need help https://docs.joomla.org/Using_the_Github_UI_to_Make_Pull_Requests

avatar infograf768
infograf768 - comment - 24 Feb 2017

code has changed a bit in 3.7.0. Please test with staging (which you would need anyway to patch if still necessary.)

avatar franz-wohlkoenig franz-wohlkoenig - change - 30 Mar 2017
Category Modules
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Apr 2017

@simkea i don't get what "if the menu closed" means, so i guess change to another Menu. This tested on 3.7, Error Reporting on Development don't get a Notice.

avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Apr 2017
Priority Medium Very low
Status New Discussion
avatar brianteeman
brianteeman - comment - 21 May 2017

After several months without reply and because the relevant code has changed I am closing this at this time - it can always be reopened

avatar brianteeman brianteeman - change - 21 May 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-05-21 14:40:33
Closed_By brianteeman
avatar brianteeman brianteeman - close - 21 May 2017

Add a Comment

Login with GitHub to post a comment