Administration menu throws an error:

Warning: strtr() expects parameter 1 to be string, array given in admin_menu_tree() (line 27 of /var/www/mysite/sites/all/modules/contrib/admin_menu/admin_menu.inc).

Please, see next issue: #2146479: Conflict with Administration menu

Comments

cmonnow’s picture

I believe this issue is unresolved and a workaround to remove duplicate parent values (e.g. PHP's reset()) could be applied. I also received the same error with the Flag module and the dev Admin Menu module.

https://www.drupal.org/node/2146479#comment-9167135

cmonnow’s picture

Title: Conflict with Fieldable panels panes » Conflict with Fieldable panels panes and Flag
cmonnow’s picture

Priority: Normal » Major
rollingnet’s picture

The workaround showed above seems to resolve the issue

I show it for your sake

$expand_map = module_invoke_all('admin_menu_map');
  foreach ($expand_map as $key => $item) {
    if (is_array($item['parent'])) {
      $expand_map[$key]['parent'] = reset($item['parent']);
    }
  }

at line #18 of admin_menu.inc

Please consider to include this patch in next dev version of this module

rollingnet’s picture

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

Has anyone tried using the latest dev version of Fieldable Panels Panes module to see if this resolves the conflict? It should be fixed there.

sk33lz’s picture

I followed the related link back to this issue and saw your comment Dave. It looks resolved.

I'm currently using both admin_menu-3.x-dev and fieldable_panels_panes-1.x-dev along with flag-7.x-3.5 without any errors. I originally had the error from #2146479 after updating admin_menu to dev release for a separate issue. No errors at this point.

plazik’s picture

Has anyone tried using the latest dev version of Fieldable Panels Panes module to see if this resolves the conflict? It should be fixed there.

I've updated Fieldable Panels Panes to dev version and error has gone.

damienmckenna’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Glad to hear it. Thanks.

plazik’s picture

Status: Closed (works as designed) » Active

Sorry, still have this error on admin/structure/pages page after enabling or disabling pages.

plazik’s picture

Status: Active » Closed (works as designed)

Sorry again, downloaded wrong version. Now all is fine.

damienmckenna’s picture

FYI I've just released FFP v1.6 that includes the fix for this problem: https://www.drupal.org/node/2497261