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

jaydub’s picture

Status: Active » Fixed

The 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

sivaji_ganesh_jojodae’s picture

Title: notice: Undefined offset: 5 in menu.inc on line 569. » PHP Notice: Undefined offset: 5 in _menu_translate() (line 760
Status: Closed (fixed) » Active

Reopening 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()

jennypanighetti’s picture

Version: 7.x-2.x-dev » 7.x-2.0-alpha1

I 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).

bnoice’s picture

I 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).

greggles’s picture

I 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.

wiifm’s picture

Got this error when visiting the subqueue page

Notice: Undefined offset: 5 in _menu_translate() (line 760 of [root]\includes\menu.inc).

using PHP 5.2.9 running nodequeue version 7.x-2.0-alpha1

JulioGuedes’s picture

Same mistake here.

keithm’s picture

Version: 7.x-2.0-alpha1 » 7.x-2.x-dev

This 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.

pitxels’s picture

so how to fix it? I still can not fix it with that comment :(

amateescu’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

anitap0322’s picture

I 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).

alonk27’s picture

Same 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).

eugene.ilyin’s picture

StatusFileSize
new883 bytes

You can use my patch for resolve this problem