After upgrading to 7.x-3.0-rc1+55-dev from 7.x-3.0-rc1+32-dev, when I click on a link, the requested page displayed, but half the admin menus disappeared. I had to clear admin_menu cache to retrieve, but next click made them disappear again.

before click on menu

after click on menu

Luckily, drush makes backups, so reverting was easy and fixed the issue for now.

Comments

sun’s picture

Category: bug » support
Status: Active » Fixed

I suspect you did not flush all caches after updating.

JSCSJSCS’s picture

Several times. Went back to test with 7.x-3.0-rc1+55-dev and had same problem. Flushed caches some more, several times in an row. Same issue. Went back to 7.x-3.0-rc1+32-dev, fixed. So mark it fixed if you want, but it is not for me.

sun’s picture

Status: Fixed » Active
  1. Does your logged in user actually have access to those links (or any contained sub-links)?
  2. Is it possible that those missing top-level categories are empty?
  3. Are the menu links enabled in the Management menu?

In case of yes on all counts - can you reproduce this issue in a fresh+clean installation?

JSCSJSCS’s picture

1.) The images show that I am logged in as Admin, which has access to everything.
2.) The images show that the top-level categories include configuration which even core has settings for.
3.) The images show the menu links before the upgrade, so menu links must have been enabled.

I can create a fresh+clean install, but if it works then what? Everyone that wants to upgrade will have a fresh+clean install so that it will work.

floptikal’s picture

Ditto. Got the same issue.

sun’s picture

Status: Active » Postponed (maintainer needs more info)
modstore’s picture

I have the same issue too. Upgraded from the latest stable to this version.

Cleared cache probably about 10 times now trying to get it working. Menu is fine after cache is cleared, but then once something is clicked, options are gone again until cache is cleared again.

JSCSJSCS’s picture

I am not able to download 7.x-3.0-rc1+32-dev for further testing. Don't know how.

drush dl admin_menu-7.x-3.0-rc1+32-dev
Could not locate admin_menu version 7.x-3.0-rc1+32-dev, downloading latest stable version

modstore’s picture

Is there anywhere I can download a previous dev version such as 7.x-3.0-rc1+32-dev? as I need this usable asap for a client. And stable isn't sufficient, as it doesn't hide menu items.

Thanks.

sun’s picture

I'm still waiting for proper answers to #3.

A plethora of misbehaviors and bugs have been fixed, so a mere screenshot of the previous output doesn't mean anything, because the module's previous behavior was bogus in many areas. It rendered category items that were empty, it rendered links that were actually disabled, and it rendered links to which the logged in user did not have access. All of those bugs are fixed.

I'm not able to reproduce this issue on an existing site, nor in a fresh and clean Drupal installation. It's therefore also important to know whether you can reproduce this issue even in a fresh and clean Drupal installation.

Lastly, it would additionally be helpful to confirm that the links in question have not been moved to somewhere else in the Management menu hierarchy, or possibly even into another menu.

Thanks.

EDIT: Also, is your site upgraded from D6, or did it start from D7?

eeyorr’s picture

Having the same problem. Answers to questions in #3:

1) Yes, the user has access to the links. This occurs for user #1.
2) The top level categories are not empty.
3) Yes, the links are enabled in the Management menu.

The site in question was upgraded from D6.

maximpodorov’s picture

Using the latest 6.x-3.x-dev brings to the same problem.

modstore’s picture

StatusFileSize
new5.75 KB
new9.33 KB

In my case:

1. Yes, happens for user #1 (admin) as well as another role I have that I have given admin access to.
2. No categories aren't empty
3. Yes, all links enabled in management menu

Links haven't been moved, they don't display at all.

My site began as a drupal 7.12 site 2 weeks ago.

Attached 2 screenshots, one directly after cache cleared, showing menu as it should. The second after another page load, when half the items are gone.

Cheers.

modstore’s picture

UPDATE: just turned off this option "Cache menu in client-side browser" in the admin menu settings, and everything seems to work fine now. :)

eeyorr’s picture

#14 seems to work for me, as well.

JSCSJSCS’s picture

The option to "Cache menu in client-side browser" wasn't in the 7.x-3.0-rc1+32-dev that was working for me. It must be new for the 7.x-3.0-rc1+55-dev that has the problem for upgraders.

#14 worked form me too. Thanks modstore!

I am not one to mess with the menus. It looks line modstore images and mine are similar in that it gets goofed up at the Appearance menu item.

patoshi’s picture

#14 worked for me too.. thanks!

for those stuck go here:

www.???.com/admin/config/administration/admin_menu

DerekL’s picture

Here Here to Number 14!

I have to learn to stop compulsively updating all my modules ...

mrtoner’s picture

I duplicated this issue on 6 sites this morning after updating to rc1+55 from rc1 (to avoid the duplicated admin/structure/menus items). In each case, admin_menu failed to display after updating; only after clearing all caches did admin_menu return. Once I clicked on a menu, however, two or four of the top level menus would disappear: Modules (sometimes), Configuration (sometimes), Reports (always) and Help (always). When Configuration did appear, it would be missing most of its items.

On one site, my Management menu was blown up after the update. I had to re-arrange the menu (Administration had no sub-items) and then reset the menu items one by one. Even after doing this, admin_menu failed to work correctly. On another site, three items in the Management menu were disabled; after enabling them, admin_menu still failed to work correctly.

Your questions, sun:

  • Does your logged in user actually have access to those links (or any contained sub-links)? User 1, so yes
  • Is it possible that those missing top-level categories are empty? No, not after fixing, and not all sites needed fixing
  • Are the menu links enabled in the Management menu? Yes, after fixing only those that needed it
  • In case of yes on all counts - can you reproduce this issue in a fresh+clean installation? Wrong question (#2 should be "No" to get here), but yes, this occurs with a clean install. It does not appear to occur when Overlay is enabled, but when I did a clean install, disabled Overlay and Toolbar, and enabled Administration Menu (not Administration Menu Toolbar Style) I could see the same bad behavior. And these were all D7 sites originally and all are running 7.12.

And disabling "Cache menu in client-side browser" solved the problem in each case.

mstrelan’s picture

+1 to number 14. Logged in as user 1.

sun’s picture

Title: Upgraded to 7.x-3.0-rc1+55-dev caused menu refresh issue » Some menu links are missing after upgrade to RC2
Category: support » bug
sun’s picture

keansmith’s picture

#14 works.

cmedina’s picture

I have tested the patch in #442560: Admin menu disappears (randomly), needs either cache to be emptied on every page or page refresh several times and I inform you that it works, but I'm still having a problem: the administration menu always is at the top of the browser viewport (even when scrolling the page).

I've tried checking and unchecking the checkbox in the setting but it does not work.

sun’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

@cmedina: Yay! Thanks for testing! The other issue you mentioned is #1086346-5: Better Toolbar does not respect 'Keep menu at top of page' setting, to be fixed over there.

I'm going to commit that patch to 3.x-dev now. Thus, marking as duplicate.

cmedina’s picture

thanks you sun, now all it's OK.