Hello,

when I use the nice menu with the module "menu badges" and "menu token" and I use a menu token with badges I get this error:

Notice: Undefined index: localized_options in theme_nice_menus_build() (line 475 of /.../sites/all/modules/nice_menus/nice_menus.module).
Recoverable fatal error: Argument 3 passed to l() must be an array, null given, called in /.../includes/menu.inc on line 1631 and defined in l() (line 2413 of /.../includes/common.inc).

Any Idea in that?

Best regards
Frank

Comments

dajjen’s picture

I have the same problem when using nice menu with menu token.
I have a link to user/[current-user:uid] and a child menu item pointing to user/[current-user:uid]/edit
This Menu only works for users having the permission "Administer users" for all other users it will generate

Notice: Undefined index: localized_options in theme_nice_menus_build() (line 596 of nice_menus/nice_menus.module).
Recoverable fatal error: Argument 3 passed to l() must be an array, null given, called in includes/menu.inc on line 1632 and defined in l() (line 2432 of /includes/common.inc).

dajjen’s picture

I just got it to work!
If I set the settings in /admin/structure/menu/item/your-menu-item-nr/edit
under "Menu Token options" and under "Method for Users" set to "User from context".

Then it looks like user's that didn't have the "Administer users" permission to be able to se the link and not get that error message.
Don't really know why, but it seems like it works.

fraweg’s picture

Hello,

thanks a lot for your post...

Best regards
Frank

arne_hortell’s picture

Whatever reason is doing this problem fix #2 works...
Can somebody enlighten WHY???

astonvictor’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

I'm closing it because the issue was created a long time ago without any further steps.

if you still need it then raise a new one.
thanks