When visiting http://localhost/admin/content/nodequeue/1 I get the error:
notice: Undefined offset: 5 in /opt/local/apache2/htdocs/man/includes/menu.inc on line 569.
Looking at the menu definitions for that page there is no offset 5. However, the menu definition for admin/content/nodequeue/%nodequeue/view/%subqueue does use an offset of 5.
'access arguments' => array(3, 5),
...
'page arguments' => array(3, 5),
So, my guess is that somehow this menu definition is slightly wrong which causes this notice. It doesn't seem to impact functionality since both menu items use the same page callbacks and access callbacks, but it would probably be good to clean this up.
EDIT: And I'm sorry, but my menu-foo isn't strong enough to fix this - otherwise I would.
Comments
Comment #1
jaydub commentedThe hook_menu item for the path /admin/content/nodequeue/%nodequeue no longer has the access arguments and page arguments mentioned above (3, 5) but just array(3) which is correct. So closing this issue.
Comment #3
sivaji_ganesh_jojodae commentedReopening this issue as this is not fixed yet. Marked #1040764: PHP Notice at subqueue page as duplicate of this. Could be related to core issue #676010: diff_menu() issue - undefined offset in includes/menu.inc on line 576 function _menu_translate()
Comment #4
jennypanighetti commentedI have this same issue in nodequeue-7.x-1.x.
Notice: Undefined offset: 5 in _menu_translate() (line 760 of /[root]/htdocs/[site]/includes/menu.inc).Comment #5
bnoice commentedI get the same error off of either the Invite or Token module with this error:
Notice: Undefined offset: 5 in _menu_translate() (line 760 of /
/d7/includes/menu.inc).
Comment #6
gregglesI haven't seen that in token and token doesn't define any menu entries, so I guess this is an Invite problem.
I suggest creating a new issue in the Invite module queue.
Comment #7
wiifmGot this error when visiting the subqueue page
using PHP 5.2.9 running nodequeue version 7.x-2.0-alpha1
Comment #8
JulioGuedes commentedSame mistake here.
Comment #9
keithm commentedThis looks like a nodequeue bug.
This error is being generated in _menu_translate() from the 'admin/structure/nodequeue/%nodequeue/view/%subqueue' menu item, defined by nodequeue_menu(), when viewing a nodequeue (e.g., URL = http://example.com/admin/structure/nodequeue/1). On line 760, _menu_translate() is trying to access the nonexistent array element $path_map[5] to match the last wildcard in the URL. Commenting out this menu definition in nodequeue_menu() eliminates the error.
This issue has been discussed in http://drupal.org/node/676010#comment-3694588 and http://drupal.org/node/676010#comment-4097282.
Comment #10
pitxels commentedso how to fix it? I still can not fix it with that comment :(
Comment #11
amateescu commentedThis was fixed in http://drupalcode.org/project/nodequeue.git/commit/d88c90c
Comment #13
anitap0322 commentedI have experienced this error - but looking at the post above - that does not give me an indication on how to proceed on correcting the error. Maybe because I just started with Drupal last year - but I need a little more hand-holding on how to correct the problem.
Notice: Undefined offset: 5 in _menu_translate() (line 760 of /home/theclub/public_html/990clubv1/includes/menu.inc).
Comment #14
alonk27 commentedSame here:
nodequeue version 7.x-2.0-alpha1
Notice: Undefined offset: 1 in nodequeue_arrange_subqueue_form_add_submit() (line 1033 of /home/alonk/public_html/modules/nodequeue/includes/nodequeue.admin.inc).
Comment #15
eugene.ilyin commentedYou can use my patch for resolve this problem