Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

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.

wrong

correct

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
    
The links to the issues are incorrect. Please make them link to the correct place to let us see what's told there. –  Countzero Apr 3 '12 at 6:56
    
@Countzero, thank you, I corrected the links above. –  Refineo Apr 3 '12 at 8:30
1  
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
show 4 more comments

1 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
add comment

Your Answer

 
discard

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.