/admin page links are broken with latest development snapshot

Linxor - July 6, 2009 - 18:32
Project:Administration menu
Version:6.x-3.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:needs work
Description

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?

AttachmentSize
1. Administer by Task.jpg128.65 KB
2. Administer by Module.jpg167.4 KB
5. After Reinstall.jpg157.18 KB
6. Install Stable Release.jpg161.71 KB

#1

Dave Reid - July 6, 2009 - 20:41
Assigned to:Anonymous» Dave Reid

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

#2

sun - July 7, 2009 - 23:58
Status:active» needs review

This is rather a Drupal core bug.

See also #513028: Trivialize system_main_admin_page()

AttachmentSize
admin_menu-DRUPAL-6--3.admin_.patch 4.33 KB

#3

kenorb - July 9, 2009 - 12:38

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

UPDATE: Ok, clearing cache helped.

#4

kenorb - July 9, 2009 - 13:41
Status:needs review» needs work

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.

AttachmentSize
with_admin_menu.jpg 68.7 KB
without_admin_menu.jpg 38.8 KB

#5

g10tto - July 9, 2009 - 19:25

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

#7

kenorb - July 11, 2009 - 13:21

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).

#8

kiamlaluno - July 11, 2009 - 19:51

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.

#9

kiamlaluno - July 11, 2009 - 19:52
Title:/admin page links broken with 6.x-3.x-dev July 5th update» /admin page links are broken with latest development snapshot

#10

kiamlaluno - July 13, 2009 - 04:07

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

#11

kenorb - July 13, 2009 - 16:35

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.

#12

HnLn - August 2, 2009 - 14:52

subscribe

#13

sun - August 2, 2009 - 15:17
Priority:critical» normal
Assigned to:Dave Reid» Anonymous
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.

#14

kiamlaluno - August 2, 2009 - 16:27

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.

#15

aleagi - August 2, 2009 - 16:47

+ 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!

#16

sun - August 2, 2009 - 21:19

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

#17

kiamlaluno - August 3, 2009 - 02:23

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

#18

kenorb - August 3, 2009 - 10:35

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

#19

Deslack - August 7, 2009 - 22:43

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.

#20

kiamlaluno - August 8, 2009 - 00:10

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).

#21

kenorb - August 10, 2009 - 15:29

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?

#22

restyler - August 11, 2009 - 14:06

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

#23

restyler - August 11, 2009 - 14:06
Priority:normal» critical

#24

aleagi - August 12, 2009 - 19:05

Hey guys,

Any news about this issue?

Regards,
Aleagi
.

#25

TCRobbert - August 21, 2009 - 14:15

+1 Subscribing

#26

Antinoo - August 26, 2009 - 10:25

+1

#27

upupax - August 26, 2009 - 13:26

subscribing

#28

kiamlaluno - August 26, 2009 - 13:29

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

#29

designerbrent - September 2, 2009 - 18:06

The patch at #2 seems to work for me.

#30

eff_shaped - September 7, 2009 - 13:40

@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.

#31

kiamlaluno - September 7, 2009 - 13:49

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.

#32

eff_shaped - September 8, 2009 - 16:00

@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. :)

#33

smk-ka - September 8, 2009 - 18:19
Version:6.x-3.x-dev» 7.x-3.x-dev

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

AttachmentSize
admin_menu-D7.patch 5.62 KB

#34

sun - September 8, 2009 - 19:45

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.

AttachmentSize
admin_menu.menu-links.patch 6.31 KB

#35

sun - September 8, 2009 - 21:55
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: Assign different admin menus to user roles to kill another issue.

#36

smk-ka - September 9, 2009 - 17:00
Status:patch (to be ported)» needs review

Backport to D6, please test.

AttachmentSize
admin_menu-D6-511744.patch 13.26 KB

#37

shadysamir - September 13, 2009 - 18:10

Patch from #36 solved my problem after flushing cache

#38

shadysamir - September 13, 2009 - 19:00

But the admin menu item in navigation menu is gone

#39

litwol - September 15, 2009 - 16:36
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.

#40

stockliasteroid - September 16, 2009 - 14:52

Patch in #36 fixed it after clearing cache.

#41

smk-ka - September 21, 2009 - 13:59
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?

#42

kenorb - September 22, 2009 - 16:40

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.

#43

geniekids - September 24, 2009 - 06:31

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.

#44

kenorb - September 24, 2009 - 13:10

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

#45

mrfelton - September 25, 2009 - 13:35

subs

#46

geniekids - September 27, 2009 - 14:12

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.

#47

tcindie - September 29, 2009 - 17:57

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.

#48

kwinters - October 6, 2009 - 15:38
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?

#49

naught101 - October 10, 2009 - 06:34

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...

 
 

Drupal is a registered trademark of Dries Buytaert.