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:

  1. _menu_translate includes/menu.inc:1876
  2. menu_local_tasks includes/menu.inc:2181
  3. menu_tab_root_path includes/menu.inc:1644
  4. menu_get_active_help modules/system/system.module:2052
  5. system_block_view('help')
  6. call_user_func_array('system_block_view',array(2 => 'help')) include/module.inc:793
  7. 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.

CommentFileSizeAuthor
#1 menu.inc_.patch535 bytespillarsdotnet

Comments

pillarsdotnet’s picture

Status: Active » Needs review
StatusFileSize
new535 bytes

Testbot fodder.

damien tournoud’s picture

pillarsdotnet’s picture

Status: Closed (duplicate) » Active

Trying out some changes to the quotes module, so removing the (duplicate) tag...

ctmattice1’s picture

The 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

damien tournoud’s picture

pillarsdotnet’s picture

Project: Drupal core » Quotes
Version: 7.x-dev » 7.x-1.x-dev
Component: menu system » Code

Okay, I was able to make the error go away; will add the patch to #1021000: More fixes...