0

I'm having some strange issues with the Drupal admin menu system. I can't reproduce it reliably, but these are the steps that usually cause the problem:

  1. Go to /user and log in. This works as expected and redirects me to the user page, where I see the admin menu.
  2. Navigate to the front page, either by clicking a link on the page or by manually entering the / address.
  3. Observe that there is no admin menu.
  4. Refresh the home page (possibly a couple of times), and the admin menu may eventually appear.

I've tried both Firefox and Chrome in private browsing sessions, as well as clearing the Drupal admin menu cache. I'm completely thrown by this, as checking in Firebug/Chrome developer tools reveals the SESSxxxx cookie properly set and not changing between when the menu is shown and when it isn't.

Related questions refer to CSS/JS aggregation issues as well as permissions errors. It seems unlikely that at least the latter problem would be so unreliable.

I have Drupal 7 running on PHP 5.4.39/Apache 2.2.22 under Debian wheezy.

1

The few times i have had a similar issue i have resolved it by turning off 'Cache menu in client-side browser' on this page admin/config/administration/admin_menu

  • I'm still seeing the issue after unticking that box and clearing caches and cookies and so on. – dutchie Jun 10 '15 at 16:32
0

I have had this in the past with differing causes:

  • if you have jQuery Update installed - I found this occasionally caused an issue where the admin menu would not show - the trick was finding a version that still produced what I wanted while maintaining the admin menu visibility - this can be confirmed if you have jQuery update installed, by temporarily disabling it

  • when developing custom modules, adding functions to template.php or otherwise making changes to tpl files I have found on rare occasions that an error in one of those files will cause the admin menu to stop showing - this can be confirmed by disabling any custom modules and changing the theme to Bartik temporarily

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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