There are 2 notices in the flags page /admin/structure/flags after installing Flags and Conditional Fields module.

Notice: Undefined offset: 4 in _menu_translate() (line 787 of /drupal root/includes/menu.inc).
Notice: Undefined offset: 4 in _menu_translate() (line 793 of /drupal root/includes/menu.inc).

Steps to replicate this are as followng:

- Use Drupal 7.41.
- Install 2 modules: Flag module and Conditional Fields module.
- Create a flag at least.
- Open flags page (/admin/structure/flags).

Comments

hgoto created an issue. See original summary.

hgoto’s picture

hgoto’s picture

hgoto’s picture

Here is a patch.

Only one line should be changed. Seeing the log, this line is changed in the commit 43b52bc1c1e6f7368d54f6dc223809c6694131cf in https://www.drupal.org/node/2397421 . I by myself confirmed that by this change there isn't any regression bug related with the issue. But I hope someone else would confirm it. Thank you.

hgoto’s picture

Status: Active » Needs review
hgoto’s picture

Assigned: hgoto » Unassigned
spanners’s picture

Applied patch at #4, cleared cache and errors gone. Thanks hgoto!

donaldwbabcock’s picture

I can confirm that I am seeing these errors on my 7.41 site with CF and Flag.

nancydru’s picture

Status: Needs review » Reviewed & tested by the community
jrb’s picture

This patch worked for me, too.

  • joachim committed b194c79 on 7.x-3.x authored by hgoto
    Issue #2639650 by hgoto: Fixed undefined offset in _menu_translate()...
joachim’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thanks everyone.

nancydru’s picture

Fabulous! Thanks.

hgoto’s picture

Great. Thank you all.

Status: Fixed » Closed (fixed)

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