Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use the Admin Menu module for my projects. In my Drupal 7 and Pressflow 7 instances, it randomly shows only some menu items.

At first, I thought I could correct this by clearing menu cache. When I went to the front page, I once again got the corrupted menu.



How do I solve this error, permanently?

I found out this issue is reported in detail, but there is only a workaround (disable menu caching).

I disabled menu caching with drush vset admin_menu_cache_client 0 as a workaround. (I am still testing this issue with the menu cache enabled.)

I checked and eliminated JavaScript errors using Firebug browser extension.

I removed BOM from *.js files as suggested in this answer.

share|improve this question
This workaround is simplier to apply if you have Drush. It's the same as the above, just easier. Did you check for BOM corrupted modules on your intallation ? – Countzero Apr 3 '12 at 8:36
I did in linux bash: find . | xargs grep -l $'\xEF\xBB\xBF' > /tmp/bom.txt and I found that a number of files *.js *.png *.jpg *.gif in /sites/all/libraries contain BOM characters. Should I also correct image files? – Refineo Apr 3 '12 at 8:46
I don't think so, but the js files may definitely need attention. – Countzero Apr 3 '12 at 8:48
Are you sure its not just an authorization/role settings problem? – whitefleaCH Apr 3 '12 at 9:45
I don't think so, I use uid 1 and I still get this error. – Refineo Apr 3 '12 at 9:52

Modules > Administration Menu > Configure

In the Performance tab, untick Cache menu in client-side browser.

Save configuration.

share|improve this answer

There is an option for rebuilding, although it refreshes all the menus. If the user has the permission to access that menu, it will be shown.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.