Needs review
Project:
Menu Block Split
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Feb 2013 at 23:29 UTC
Updated:
16 May 2013 at 14:12 UTC
Hi,
When I touch a page which does not exist in my site, a 404 error, I got:
Undefined offset: 1 in menu_block_split_get_first_level() (line 274 of sites/all/modules/menu_block_split/menu_block_split.module
Thanks for looking into this!
Greetings, Martijn
Comments
Comment #1
summit commentedHi,
I added 2 lines to the module to remove this error:
Full function is:
Is this correct?
Greetings, Martijn
Comment #2
oliversk commentedI have the same problem - when using your function it disappears
However, it does not fix the actual problem: Both menus the main menu and submenu are gone from the frontpage (they are still on content sites)
Am I missing something? Sorry new to Drupal 7
Comment #3
summit commentedHi,
Maybe the values should be set somewhere else...can may be module maintainer help please?
greetings, Martijn
Comment #4
hutch commentedI can't replicate this, but try this:
Comment #5
howdytom commented@ hutch:
I am able to replicate the Undefined offset: 1 in menu_block_split_get_first_level( issue too.
Your code fixes the issue. Thank you!
Comment #6
hutch commentedCommited in D6 and D7
Comment #7
nicodv commentedHi, I just found I had same problem here.
In case it helps, the menus were in the home, then I deleted some basic pages (CT) and articles and then I saw the error mentioned in this issue. Updated the module with the latest version, and the error is gone, but the menus are not showing up still.
Any other idea?
thanks
nico