Warning: strtr() expects parameter 1 to be string, array given in admin_menu_tree() (line 27 of /home/getreferences/public_html/sites/all/modules/admin_menu/admin_menu.inc).

I'm using Drupal 7.34 and I just updated this module and got the above error message. Please help. Should I roll back to a previous version - seems wrong to do so (plus I did not write down the version I had installed before the update).


Members fund testing for the Drupal project. Drupal Association Learn more


GerZah’s picture

(Follow:) Same here.

According to my local git, I had been using 7.x-3.0-rc4 before upgrading to -rc5.

Interestingly enough, this piece of code within function admin_menu_tree() doesn't seem to have changed at all between versions.

GerZah’s picture

Assigned: jessejabberjaw » Unassigned
Category: Support request » Bug report
tea2sugars’s picture

Anyone get to the bottom of this, should I just rollback a version until ready?

tea2sugars’s picture

I rolled back to the last version and that worked fine so am gonna stick with that until i see otherwise. Unfortunately i cannot help as it's well beyond my capabilities!

idebr’s picture

This notice is caused by contrib module that implement their own hook_admin_menu_map(). You can use the attached patch in combination with the Devel module to find which module is causing the notice. You can then open an issue in the corresponding module to have it fixed.

Here is a screenshot with the patch attached.

GerZah’s picture

Oh-kay. In my case, it seems to be [node_registration](https://www.drupal.org/project/node_registration).

rajmataj’s picture

I am also getting this with Drupal 7.34. Not using the 'Fieldable Panels Panes' module, nor 'Node Registration' but if Admin Menu is conflicting with at least 3 other modules, seems prudent that the fix be applied to the Admin Menu module, no?

wylbur’s picture

I new version of flag module has been released today which resolved this error message.

That does not resolve this issue completely, but it's a start!

KaseyMK’s picture

Thanks idebr - your admin_menu-strtr-do-not-test.patch in #5 is super helpful!