When viewing the main /quotes page, the following notice is displayed:
- Notice: Undefined offset: 1 in _menu_translate() (line 774 of includes/menu.inc).
A backtrace shows the following call chain:
- _menu_translate includes/menu.inc:1876
- menu_local_tasks includes/menu.inc:2181
- menu_tab_root_path includes/menu.inc:1644
- menu_get_active_help modules/system/system.module:2052
- system_block_view('help')
- call_user_func_array('system_block_view',array(2 => 'help')) include/module.inc:793
- module_invoke('system','block_view','help') modules/block/block.module:828
I can post the full backtrace if necessary.
I tried visiting /quotes/0 and /quotes/1 and got the same notice, even after clearing all caches.
If this could possibly be caused by an error in the quotes module, could someone please throw me a clue as to where I might look for it? I already checked the quotes_help() function, but hook_help() is unchanged from D6-D7, according to api.drupal.org.
Comments
Comment #1
pillarsdotnet commentedTestbot fodder.
Comment #2
damien tournoud commented#676010: diff_menu() issue - undefined offset in includes/menu.inc on line 576 function _menu_translate()
Comment #3
pillarsdotnet commentedTrying out some changes to the quotes module, so removing the (duplicate) tag...
Comment #4
ctmattice1 commentedThe best I have determined is that this is caused by the quotes module menu itself. In the module it is setting up tabs for authenticated users. From what I've read but still trying to put my head around it is that when using tabs like this you have to change the FAPI elements to reflect the tabs and number of tabs.
Might be wrong on that. BTW thank you for helping get this ready for D7
Comment #5
damien tournoud commentedSee #676010-31: diff_menu() issue - undefined offset in includes/menu.inc on line 576 function _menu_translate().
Comment #6
pillarsdotnet commentedOkay, I was able to make the error go away; will add the patch to #1021000: More fixes...