Fresh install of Drupal 7.36.
As soon as I create a flag I get the two following errors:
Notice: Undefined offset: 4 in _menu_translate() (line 779 of /path/path/path/path/path/path/includes/menu.inc).
Notice: Undefined offset: 4 in _menu_translate() (line 785 of /path/path/path/path/path/path/includes/menu.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | flag_error.png | 29.15 KB | nancydru |
Comments
Comment #1
System Lord commentedI did the same and got the same notices. Appears only in Flag admin pages. I have two flags an both set to: "Display link as field ".
Update:
I just noticed that the same thing occurs with one of my other sites still at D7.35
Comment #2
jgardezi commentedHi,
I am having a same issue coming up on Flag admin page.
Notice: Undefined offset: 4 in _menu_translate() (line 777 of /path/path/includes/menu.inc).
Notice: Undefined offset: 4 in _menu_translate() (line 783 of /path/path/includes/menu.inc).
I am using it with Drupal core 7.35.
Comment #3
eott commentedSame. Drupal 7.34
Notice: Undefined offset: 4 in _menu_translate() (line 777 of /path/includes/menu.inc).
Notice: Undefined offset: 4 in _menu_translate() (line 783 of /path/includes/menu.inc).
Comment #4
funkycamel commentedNotice: Undefined offset: 4 in _menu_translate() (line 779 of /path/includes/menu.inc).
Notice: Undefined offset: 4 in _menu_translate() (line 785 of path/includes/menu.inc).
Drupal 7.36
Comment #5
Rdnala commentedI have the same error. It appears after upgrading to Flag 7.x-3.6. If I rollback to Flag 7.x-3.5, error disappears.
When this error appears, $router_item object has these values:
Hope it helps.
Comment #6
joachim commentedThanks for investigating this further.
'admin/structure/flags/manage/%/dependencies' is not a path that's provided by Flag. Can you see which of your modules defines it?
We made some small changes to the Flag admin menu structure, mostly for Admin Menu support, and also #1371644: Change Import menu item to menu_local_action. These could have affected another module.
Comment #7
funkycamel commentedconditional fields?I use it on the current site.
Comment #8
kaizerking commentedI can confirm that this is produced by conditional fields module disabling conditional fields module removes this error
Notice: Undefined offset: 4 in _menu_translate() (line 779 of /abcd.com/includes/menu.inc).
Notice: Undefined offset: 4 in _menu_translate() (line 785 of /abcd.com/includes/menu.inc).
Comment #9
Rdnala commentedI can confirm too. I disabled Conditional Fields, and error disappeared.
Comment #10
cockers commentedSame is happening here.
Comment #11
joelpittetSeeing this without conditional fields module.
Comment #12
joelpittetComment #13
joelpittetIgnore me, reaction, not sure if this module is the cause.
Comment #14
theroyal commentedI just upgraded to 7.37 and installed rules,
I have no flag module no conditional field module,
I just noticed it on a panel page with content panes
I feel it is related to the panel settings, i ll go to check it out further.
Comment #15
theroyal commentedignore my last message,
I solved my problem,
I found out that I did the wrong settings for 2 pages with "menu tabs" with a 3rd one was using the same path.
and now i dont see this error anymore :)
Comment #16
robin.ingelbrecht commentedIs there a solution yet. Got the same problem
Comment #17
joachim commentedI can't reproduce this bug on my system, so this is not going to be fixed until either: a) someone posts instructions that show me how I can do that, or b) someone with this problem works on a fix.
Comment #18
nancydruDoes this image help at all?
I can confirm that it goes away without Conditional Fields. Moving this issue to that module.
Comment #19
nancydruComment #20
niallmurphy-ie commentedSame problem.. Flag + Conditional Fields.
Comment #21
jproctorI'm seeing it on /admin/structure with Relation + Conditional Fields (
$router_item['path'] = 'admin/structure/relation/manage/%/dependencies'), but only when I don't have Relation UI enabled.I don't know Flag, but I'm guessing the common thing here is that we're working with fielded entities that don't provide a mechanism for managing those fields,
therefore we can't manage the dependencies. I'm not sure how CF could test for that.
Comment #22
joshuautley commentedWebform module had this problem in the past. Maybe something can be learned from the work over there?
https://www.drupal.org/node/2038933
Comment #23
nancydruIn conditional_fields_menu() at line 143, I did this and the message is gone.
I'm sure there's a better way.
Comment #24
digitgopher commented#23 does remove the error. I'm using it for now, but am unsure if it is the right solution though.
Comment #25
ramdhanh commentedThanks nancydru, your code at #23 did solve the issue.
Comment #26
nancydruComment #27
hgoto commentedThank you for the issue. I met the same notice. Seeing the phenomenon and code, this bug should be fixed in Flag module rather than in Conditional Fields module, I believe. I created another issue in Flag module queue and uploaded a patch. I hope someone test it. Thank you in advance.
https://www.drupal.org/node/2639650#comment-10692454
Comment #28
jproctorI just opened a related issue on Relation: https://www.drupal.org/node/2639974 .