I updated to the 3.x-dev from July 5 and started experiencing major problems.

1 ) When browsing to /admin "By Task", I cannot see any links and only see a message "You do not have any administrative items." (1. Administer by Task.jpg)

2 ) However, if I click the "By Module" page, I see links as normal. (2. Administer by Module.jpg)

3 ) I cleared *all* caches and still no change to the /admin page.

4 ) I completely uninstalled the "Admin Menu" module and the /admin page links started working again.

5 ) I reinstalled the "Admin Menu" module and now the Admin Menu navigation displays no links. (5. After Reinstall.jpg)

6 ) I uninstalled the latest 3.x-dev version of the module and installed the latest stable release (6.x-3.0-alpha1) and all is working again. (6. Install Stable Release.jpg)

I'm running Drupal 6.13. Anything else you need to know?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dave Reid’s picture

Assigned: Unassigned » Dave Reid

Thank you for the report. I'm looking into this.

sun’s picture

Status: Active » Needs review
FileSize
4.33 KB

This is rather a Drupal core bug.

See also #513028: Trivialize system_main_admin_page()

kenorb’s picture

Applied patch, still 'You do not have any administrative items.'
menu_router table is ok
Any other action needed?

UPDATE: Ok, clearing cache helped.

kenorb’s picture

Status: Needs review » Needs work
FileSize
38.8 KB
68.7 KB

After activated additional unnecessary menu items show up in administrative items for users who have administrative permissions.
See screenshots between when admin_menu module is activated and is not.

g10tto’s picture

I get WSOD on all my admin/* when I have this version of the module active.

kenorb’s picture

kenorb’s picture

Secondly after this patch administrative items are duplicated on admin page when logged as admin.
Two section of 'User management', 'Reports', etc.
And those duplicates could cause as well:
#514606: MySQL server has gone on UPDATE cache_menu
because cache_menu packet will be doubled size as normal.

WARNING:
In case when you want to revert this patch, it will cause WSOD, then you need to rebuild your menu_router table (in this case follow #6).

apaderno’s picture

Is the issue still valid for the latest development snapshot (July 10th)?

From my side, I can report I have never had the issues reported here, and the only issue I had is not present in the latest development snapshot.

EDIT: I spoke too soon; I have the same problem with the latest development snapshot.

apaderno’s picture

Title: /admin page links broken with 6.x-3.x-dev July 5th update » /admin page links are broken with latest development snapshot
apaderno’s picture

I can report that the administration menu is broken also with the latest development snapshot (July 11th).

kenorb’s picture

Solve for 'You do not have any administrative items.' issue is just to disable admin_menu module and rebuild menu by going to admin/build/modules and to install stable version or wait for a fix.

HnLn’s picture

subscribe

sun’s picture

Assigned: Dave Reid » Unassigned
Priority: Critical » Normal
Status: Needs work » Needs review

Patch in #2 still needs to be tested. Worked flawlessly for me.

That said, I have no use for and never visit the /admin "dashboard" page, so I have little interest in pushing this bugfix in.

apaderno’s picture

I updated to the latest beta2, but I get the problem reported here. The previous installed version was beta1, which didn't give me any problems.

aleagi’s picture

+ 1 here!

Beta 1 works fine, beta 2 has the problem related here.

The menu looks black (logged as user/1), only the username is red.

Disabled in production sites, waiting for the fix!

Thanks for this really helpfull module!

sun’s picture

well, once again, if you want to see this fixed, then test the patch.

apaderno’s picture

I tested the patch, and it works.
I am sorry I didn't do this before, but I actually missed the patch at #2.

kenorb’s picture

I tested as well and it doesn't work for me (#4, #7).

Deslack’s picture

As for my case, it did not get fixed even after I uninstalled the Administration menu module. I found out that the 'Administer by Task' list is generated from the Administer item inside the Navigation menu.

I checked the Menus admin page and found a new menu -- the Administration menu, apparently added by the latest dev version. Then later I checked the Navigation menu and found that the Administer menu item is way out at the bottom. I suspect that it was removed and then later readded somehow.

I reordered the menu, and readded the child items for the Administer menu item to where it belongs, and it worked.

apaderno’s picture

I noticed that, after patching the code, the menu breadcrumbs are not shown correctly. Most of the times they are truncated to the first two items; the other times, I can only see the link that takes to the front page (which is not very useful).

kenorb’s picture

Any working 6.x version available?
With patch doesn't work properly, without it, it's worst.
Anybody know which older version was working fine?

restyler’s picture

any news on that issue? what version should we use while latest snapshot is not working?

restyler’s picture

Priority: Normal » Critical
aleagi’s picture

Hey guys,

Any news about this issue?

Regards,
Aleagi
.

TCRobbert’s picture

+1 Subscribing

Antinoo’s picture

+1

upupax’s picture

subscribing

apaderno’s picture

Rather than subscribing, you should read what reported in the project page; you could help in resolving the issue.

designerbrent’s picture

The patch at #2 seems to work for me.

eff_shaped’s picture

@KiamLaLuno: Can you specify what you mean by "what [is] reported on the project page". I have looked at it and can't find anything that points to a solution.

For some of us, patches are not really a solution - I don't know how or when to use them, or test them. We subscribe in the hope of a clue to fix this (in the absence of bookmarks).
I really appreciate all the hard work done to fix issues.

Can anyone explain what a non-programming user can do to restore these menu links - is there a stable version of admin menu that should work? Any documentation with steps to take?

I have uninstalled admin menu 6.x-3.0-alpha3 and STILL have my admin links missing. I reinstalled admin menu 6.x-1.5 and remain without links. So I'm trying to find a solution to that.

apaderno’s picture

I was referring to

Administration menu needs serious help.
Drupal's menu system contains bugs that badly need to be fixed.

See #550254: Menu links are sometimes not properly re-parented if you want to help.

eff_shaped’s picture

@KiamLaLuno - Thanks for clarifying. I would help if I could. And I am grateful for all work in the right direction.

Meanwhile, for anyone looking for a solution to missing admin links, I have been able to get mine back.

I made a forum post about what steps I took: http://drupal.org/node/571652 - check it out if you are stuck.

Although, I don't understand how, it worked and that suits me. :)

smk-ka’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
FileSize
5.62 KB

We sat down and tried to fix this -- for D7 at least. Backporting should be relatively easy, though.

sun’s picture

FileSize
6.31 KB

Additionally moved configuration page to new "Administration" category below Configuration and modules.

Interestingly, applying this patch to an existing installation showcases another re-parenting bug in the menu system, which may or may not be covered by #550254: Menu links are sometimes not properly re-parented. Summary: The menu link pointing to 'admin' was previously made invisible by admin_menu, so it no longer shows up in any menu. This patch basically reverts that and just hides that link on rendering. The result is that all links below 'admin/' are NOT re-parented below the now again visible "Administer" link.

sun’s picture

Version: 7.x-3.x-dev » 6.x-3.x-dev
Status: Needs review » Patch (to be ported)

Committed this patch with slight adjustments to comments for D7.

Basically, this should be backportable, but it requires us to make the menu to use for Administration menu configurable. In turn, that means we could just implement #336611: Allow to configure different menu to use for certain roles to kill another issue.

smk-ka’s picture

Status: Patch (to be ported) » Needs review
FileSize
13.26 KB

Backport to D6, please test.

shadysamir’s picture

Patch from #36 solved my problem after flushing cache

shadysamir’s picture

But the admin menu item in navigation menu is gone

litwol’s picture

Status: Needs review » Reviewed & tested by the community

Patch in #36 worked for me. I did not experience any negative side effects[ yet]. If anyone have any debugging process they wish me to follow to make sure everything works then post it here.

stockliasteroid’s picture

Patch in #36 fixed it after clearing cache.

smk-ka’s picture

Status: Reviewed & tested by the community » Postponed (maintainer needs more info)

Committed #36 for D6 (requires flushing cashes to get admin menu rebuilt).

@sun
Could you explain why it is a "requirement" to have the menu to use for admin menu configurable?

kenorb’s picture

In my case with latest development, I've got no Administer item in Navigation. When going manually to /admin I've got only one group of menu and one group in menu_admin bar.
At first I've tried to upgrade and as well I've tried to uninstall and install again. No changes after clearing the cache. No WSOD after uninstalling as it was before.

ratnesh aarohi’s picture

The admin menu item in navigation when clicked shows:

Welcome to the administration section. Here you may control how your site functions.
You do not have any administrative items.

kenorb’s picture

geniekids: upgrade to latest dev and clear the cache and test it again

mrfelton’s picture

subs

ratnesh aarohi’s picture

tested - but test failed.

did upgrade, ran update.php and cleared cache

admin/reports/updates shows
Administration menu 6.x-3.x-dev (2009-Sep-26)
i ran update and cleared cache (from peformance page)
Result is terrible- the admin_menu at the top is blank - no Admin_menu drop dowms :-(
no admin link in navigation :-((
if i goto /admin
i still get the same error "You do not have any administrative items"

note - i am logged in as user 1

since all the admin_menu items are also missing - i roll back to my previous version and after update - the admin_menu is back - but the /admin still shows the same message.

willvincent’s picture

Patch in #2 works for me with latest version of drupal 6, and admin_menu 6.x-3.0-alpha3

I should specify though that I added the changes by hand rather than applying the patch, since I didn't have a patching tool handy on the machine I'm working on at the moment.

kwinters’s picture

Status: Postponed (maintainer needs more info) » Needs work

I think we're taking the wrong approach here. The patches all seem to be workarounds but not really address the underlying problem: recent versions of admin_menu trash the navigation menu.

Do a fresh D6 install, run "select menu_name,link_path,link_title from menu_links where link_path like 'admin/content%' order by link_path limit 50;" and you get 15 rows (all menu_name navigation).

If you then install admin_menu 3 alpha 1, it copies all the navigation menu entries. Since the old ones are in place, the module is just additive, and everything old works.

However, if you install alpha 3 or D6 dev (regardless of whether it's via update or on a fresh install), almost all of the Navigation menu items are actually converted into admin_menu. Everything that relied on that menu is now broken, and will continue to be broken until admin_menu is deactivated and the menu is rebuilt.

What prompted the change in approaches from copy to update? Is it something that genuinely is worth trashing the Navigation menu? Can the other goal be achieved without trashing Navigation?

naught101’s picture

I'm not entirely sure if I'm having the same problem, but it sounds like it. I upgraded Admin Menu, and everything dissappeared, then I uninstalled it before realising that the problem wasn't that the admin pages weren't there - I could still access them all, it was just that they were missing, because the Administration Menu item had been moved, and all of it's sub-items were no longer under it (they seem to have been moved under "Logout" somehow).

Clicking "reset" on each of the main administration area menu items in admin/build/menu-customize/navigation seems to bring them back nicely.

After reinstalling half way through resetting my administration menu, I note that the "administration" menu item itself disappears completely, with everything under it (so the things that were still moved from the first time are still visible, but the sub-items that I reset are gone). Uninstalling brings them back, in exactly the same place they were before reinstalling (ie. don't need to reset again).

I hope that's clear...

Dane Powell’s picture

I installed 6.x-3.x-dev and flushed caches as suggested, still no admin page links in any of my menus...

Ken Knowles’s picture

Subscribing

shariharan’s picture

6.3 dev fixed the issue for me ..

apaderno’s picture

I find interesting that for somebody the module works, and for somebody else the module doesn't work.
I once again installed the module, but I get no links in the admin page.

portulaca’s picture

subscribing

Alan.Guggenheim’s picture

Just tried to upgrade to 3.x-dev and same problem: all admin menus disapeared.

KKarimi’s picture

I can second this 3.x-dev has this issue

j0nathan’s picture

subscribing

stella’s picture

The patch in #36 was working for me, but it's stopped working again. I guess when I upgraded to alpha4, but I'm not entirely sure when it started - I don't need to create users very often. The patch is applied (or is in alpha4, not sure which) and I've flushed menu cache, etc. Still no joy...

mstevetodd’s picture

Thanks! Clicking reset on each admin item (as suggested in #49) worked great for me.

Dane Powell’s picture

Is this still an issue for people? I haven't seen it happen on recent installs- maybe I'm just lucky, but maybe it was fixed.

tomasbedrich’s picture

subscribing

sun’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
Issue tags: +D7 stable release blocker
sun’s picture

Version: 7.x-3.x-dev » 6.x-3.x-dev
Priority: Critical » Major
Issue tags: -D7 stable release blocker

Sorry, that was bogus. This code (and thus also this issue) does not exist in D7.

robbertnl’s picture

Bug still exists in 6.x-3.0-alpha4

mkalbere’s picture

Same issue with the lastest dev.
I solved the issue by

function admin_menu_menu_link_alter(&$item, $menu) {
// @todo Temporary fix until #550254 has been released.
// @see menu_link_save()
// Only process links during menu router rebuild, belonging to our menu.
- if (!isset($menu) || !($item['menu_name'] == 'admin_menu')) {
+ if (!isset($menu) || !($item['menu_name'] == 'navigation')) {
return;
}

truls1502’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

It seems it is outdated because Drupal 6 is EOL (End-of-life) and will no longer be supported.

In case if you or anyone is still facing on Drupal 7/8, please to reopen it, change the correct version and provide with more information and a screenshot which might help us to troubleshoot. :)