Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: Summit commentedHi,
I added 2 lines to the module to remove this error:
Full function is:
Is this correct?
Greetings, Martijn
Comment #2
oliversk CreditAttribution: 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 CreditAttribution: Summit commentedHi,
Maybe the values should be set somewhere else...can may be module maintainer help please?
greetings, Martijn
Comment #4
hutch CreditAttribution: hutch commentedI can't replicate this, but try this:
Comment #5
howdytom CreditAttribution: 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 CreditAttribution: hutch commentedCommited in D6 and D7
Comment #7
nicodv CreditAttribution: 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