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?
Comment | File | Size | Author |
---|---|---|---|
#36 | admin_menu-D6-511744.patch | 13.26 KB | smk-ka |
#34 | admin_menu.menu-links.patch | 6.31 KB | sun |
#33 | admin_menu-D7.patch | 5.62 KB | smk-ka |
#4 | with_admin_menu.jpg | 68.7 KB | kenorb |
#4 | without_admin_menu.jpg | 38.8 KB | kenorb |
Comments
Comment #1
Dave ReidThank you for the report. I'm looking into this.
Comment #2
sunThis is rather a Drupal core bug.
See also #513028: Trivialize system_main_admin_page()
Comment #3
kenorb CreditAttribution: kenorb commentedApplied patch, still 'You do not have any administrative items.'
menu_router table is ok
Any other action needed?
UPDATE: Ok, clearing cache helped.
Comment #4
kenorb CreditAttribution: kenorb commentedAfter 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.
Comment #5
g10tto CreditAttribution: g10tto commentedI get WSOD on all my admin/* when I have this version of the module active.
Comment #6
kenorb CreditAttribution: kenorb commentedDetails of #5 g10tto issue:
#514898: "You do not have any administrative items." - Callback: system_main_admin_page() doesn't exist!
Comment #7
kenorb CreditAttribution: kenorb commentedSecondly 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).
Comment #8
apadernoIs 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.
Comment #9
apadernoComment #10
apadernoI can report that the administration menu is broken also with the latest development snapshot (July 11th).
Comment #11
kenorb CreditAttribution: kenorb commentedSolve 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.
Comment #12
HnLn CreditAttribution: HnLn commentedsubscribe
Comment #13
sunPatch 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.
Comment #14
apadernoI 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.
Comment #15
aleagi CreditAttribution: aleagi commented+ 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!
Comment #16
sunwell, once again, if you want to see this fixed, then test the patch.
Comment #17
apadernoI tested the patch, and it works.
I am sorry I didn't do this before, but I actually missed the patch at #2.
Comment #18
kenorb CreditAttribution: kenorb commentedI tested as well and it doesn't work for me (#4, #7).
Comment #19
Deslack CreditAttribution: Deslack commentedAs 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.
Comment #20
apadernoI 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).
Comment #21
kenorb CreditAttribution: kenorb commentedAny working 6.x version available?
With patch doesn't work properly, without it, it's worst.
Anybody know which older version was working fine?
Comment #22
restyler CreditAttribution: restyler commentedany news on that issue? what version should we use while latest snapshot is not working?
Comment #23
restyler CreditAttribution: restyler commentedComment #24
aleagi CreditAttribution: aleagi commentedHey guys,
Any news about this issue?
Regards,
Aleagi
.
Comment #25
TCRobbert CreditAttribution: TCRobbert commented+1 Subscribing
Comment #26
Antinoo CreditAttribution: Antinoo commented+1
Comment #27
upupax CreditAttribution: upupax commentedsubscribing
Comment #28
apadernoRather than subscribing, you should read what reported in the project page; you could help in resolving the issue.
Comment #29
designerbrent CreditAttribution: designerbrent commentedThe patch at #2 seems to work for me.
Comment #30
eff_shaped CreditAttribution: eff_shaped commented@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.
Comment #31
apadernoI was referring to
Comment #32
eff_shaped CreditAttribution: eff_shaped commented@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. :)
Comment #33
smk-ka CreditAttribution: smk-ka commentedWe sat down and tried to fix this -- for D7 at least. Backporting should be relatively easy, though.
Comment #34
sunAdditionally 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.
Comment #35
sunCommitted 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.
Comment #36
smk-ka CreditAttribution: smk-ka commentedBackport to D6, please test.
Comment #37
shadysamir CreditAttribution: shadysamir commentedPatch from #36 solved my problem after flushing cache
Comment #38
shadysamir CreditAttribution: shadysamir commentedBut the admin menu item in navigation menu is gone
Comment #39
litwol CreditAttribution: litwol commentedPatch 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.
Comment #40
stockliasteroid CreditAttribution: stockliasteroid commentedPatch in #36 fixed it after clearing cache.
Comment #41
smk-ka CreditAttribution: smk-ka commentedCommitted #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?
Comment #42
kenorb CreditAttribution: kenorb commentedIn 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.
Comment #43
ratnesh aarohi CreditAttribution: ratnesh aarohi commentedThe 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.
Comment #44
kenorb CreditAttribution: kenorb commentedgeniekids: upgrade to latest dev and clear the cache and test it again
Comment #45
mrfelton CreditAttribution: mrfelton commentedsubs
Comment #46
ratnesh aarohi CreditAttribution: ratnesh aarohi commentedtested - 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.
Comment #47
willvincent CreditAttribution: willvincent commentedPatch 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.
Comment #48
kwinters CreditAttribution: kwinters commentedI 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?
Comment #49
naught101 CreditAttribution: naught101 commentedI'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...
Comment #50
Dane Powell CreditAttribution: Dane Powell commentedI installed 6.x-3.x-dev and flushed caches as suggested, still no admin page links in any of my menus...
Comment #51
Ken Knowles CreditAttribution: Ken Knowles commentedSubscribing
Comment #52
shariharan CreditAttribution: shariharan commented6.3 dev fixed the issue for me ..
Comment #53
apadernoI 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.
Comment #54
portulacasubscribing
Comment #55
Alan.Guggenheim CreditAttribution: Alan.Guggenheim commentedJust tried to upgrade to 3.x-dev and same problem: all admin menus disapeared.
Comment #56
KKarimi CreditAttribution: KKarimi commentedI can second this 3.x-dev has this issue
Comment #57
j0nathan CreditAttribution: j0nathan commentedsubscribing
Comment #58
stella CreditAttribution: stella commentedThe 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...
Comment #59
mstevetodd CreditAttribution: mstevetodd commentedThanks! Clicking reset on each admin item (as suggested in #49) worked great for me.
Comment #60
Dane Powell CreditAttribution: Dane Powell commentedIs 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.
Comment #61
tomasbedrich CreditAttribution: tomasbedrich commentedsubscribing
Comment #62
sunComment #63
sunSorry, that was bogus. This code (and thus also this issue) does not exist in D7.
Comment #64
robbertnl CreditAttribution: robbertnl commentedBug still exists in 6.x-3.0-alpha4
Comment #65
mkalbere CreditAttribution: mkalbere commentedSame 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;
}
Comment #66
truls1502It 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. :)