When the the Node Breadcrumb and Admin Menu Module are enabled at the same time the following code is printed at the top of the user login page (example.com/user):
[code]
1 / 0 Only local images are allowed.
[/code]
Here is the link to the related issue for Admin Menu: http://drupal.org/node/279767
Attached is a screenshot.

CommentFileSizeAuthor
userlogin.png18.22 KBcodybarr

Comments

codybarr’s picture

Sorry:
1 / 0 <img src="/sites/godbyte.com/modules/admin_menu/images/icon_users.png" width="16" height="15" alt="Current anonymous / authenticated users" title="Current anonymous / authenticated users" />

kevinquillen’s picture

Is this fixed yet or what?

codybarr’s picture

No, this problem still persists.

mpettitt’s picture

Changing the node_breadcrumb_init function as shown below (based on patch at http://drupal.org/node/303247#comment-1310764) _seems_ to work, but I've not tested extensively, hence no actual patch. Also, this doesn't make any attempt to make the changes configurable, since I just needed it working, not looking pretty!

function node_breadcrumb_init() {
  drupal_add_css(drupal_get_path('module', 'node_breadcrumb') .'/node_breadcrumb.css');
  $ignored_menus =  array('admin_menu', 'devel');
  $menu_item = menu_get_item();
  $result = db_query("SELECT mlid FROM {menu_links} WHERE link_path = '%s'", $menu_item['href']);
    while($mlid = db_result($result)) {
      $menu_link = menu_link_load($mlid);
      // @see http://www.php.net/manual/en/function.in-array.php#86695
      if (!in_array($menu_link['menu_name'], $ignored_menus, TRUE)) {
        menu_set_active_menu_name($menu_link['menu_name']);
        break;
      }
    }
 
//  menu_set_active_menu_name(db_result(db_query("select menu_name from {menu_links} where link_path='%s'", $menu_item['href'])));
}
kevinquillen’s picture

I changed menu breadcrumb (problem is in there too) in its menu sql to exclude names containing 'admin_menu'.

Fixed it wonderfully.

This should be added into the module!

jacine’s picture

Was having the same issue, but applying #4 fixed the problem ;)

peter.walter’s picture

Seeing same problem - changed line 59 of node_breadcrumb.module from
menu_set_active_menu_name(db_result(db_query("select menu_name from {menu_links} where link_path='%s'", $menu_item['href'])));
to
menu_set_active_menu_name(db_result(db_query("select menu_name from {menu_links} where menu_name != 'admin_menu' AND link_path='%s'", $menu_item['href'])));

Worked for me.
Peter

AkkuDreamz’s picture

thanks Peter
thats fixed it for me too
:)

brad.bulger’s picture

Version: 6.x-1.0-beta2 » 6.x-1.x-dev

just confirming this is still a problem - it seemed like the beta5 release had fixed it, at first, but then there were other problems with that release, and moving to 1.x-dev solved the other stuff but brought this problem back. the patches described above work fine in the meantime.

edhel’s picture

Version: 6.x-1.x-dev » 6.x-1.0-beta5
Status: Active » Fixed

fixed in beta6

// 6.x-1.x-dev is very old, don't use it

Status: Fixed » Closed (fixed)

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