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.
menu_rebuild() sometimes produces
WD php: Notice: Undefined index: module in _menu_router_build() [notice]
(line 3194 of
The empty string default is filled in afterwards, no attempt is made to set it before then, so we just need to move it a bit earlier. I'm not sure what specifically causes this bug to occur, but it's a trivial fix.
Comment | File | Size | Author |
---|---|---|---|
#4 | drupal-6.x-1288098366.patch | 568 bytes | hswong3i |
menu_notice.patch | 801 bytes | catch | |
Comments
Comment #1
chx CreditAttribution: chx commentedStill applies.
Comment #2
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #4
hswong3i CreditAttribution: hswong3i commentedCase similar and also apply for Drupal 6.19. When "drush up" + PHP5.3.2 error message as below:
Patch via drupal-6.x-dev CVS.
Comment #5
yched CreditAttribution: yched commentedI'm bitten by this as well on D6 - no need for PHP 5.3, just enable a module that *adds* menu items in hook_menu_alter().
Comment #7
joshuajabbour CreditAttribution: joshuajabbour commenteddespite the bot, this patch applies and fixes the issue. please apply to d6...
Comment #8
Gábor HojtsyCommitted, thanks.