When I create my new Drupal site on my localhost, I have my admin toolbar for maybe a day. The next time I fire it up locally, the admin toolbar is gone and I can't manage my site at all.

Any ideas on why this is happening? Also, how can I attach screenshots of my issue?

Comments

John_B’s picture

It is not clear whether you mean that Admin Toolbar contributed module, which improves the default toolbar, or whether you mean the toolbar built into core.

As well as clarifying that, you should say whether doing a 'cache rebuild' helps (can do it from browser at /admin/config/development/performance and hit the 'Clear all caches' button).

Also check that you have updated to the latest version of Drupal 8, which is 8.2.5, because there were problems with the stability of some of the earlier versions including problems affecting the administration toolbar IIRC.

Also advise whether it happens on a clean test install of Drupal 8 on the same server as your site which is giving the problem, as the problem may be related to a contributed module on your site.

What is needed are steps to reproduce the problem, rather than screenshots: I assume a screenshot will just show that the toolbar is missing, which we know already.

Firing up a fresh test site, and checking whether you can reproduce the issue there, is often a useful step. If a fresh test site behaves the same way, and you are using the latest version of Drupal 8, you could then try the test site on a different server or a different laptop, so as to check whether the problem lies there.

Any error messages may also be useful. It is a question of narrowing down possible causes.

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors

ahummel25’s picture

Hi John,

Yes, I am running Drupal 8.2.5. The issue is with the main toolbar when I start my site locally. This is the toolbar that has Content, Structure, Appearance, Extend, Configuration, etc. That toolbar is vanishing randomly. The bar above it with Manage, Shortcuts, and my username also disappears.

I have just tried clearing the cache as you explained. I'll see if this helps.

Yes, this happens on a clean test install of Drupal 8 which I install each time I build a new site and it's on the same server as the previous test sites having the same issue.

There are no error messages thrown. It still loads my site but without the aforementioned toolbar, so I can't do anything once it starts up.

It might be worth noting that I'm creating and starting these sites up from Acquia Dev Desktop 2.

Thanks

John_B’s picture

I did hear a rumour of this happening but have not seen it and it is not affecting me on Dev Desktop. You could try a different environment such as https://www.drupalvm.com/

Cross-posting to other forums (http://stackoverflow.com/questions/41747287/drupal-8-admin-toolbar-keeps...) is not well liked becaused sometimes people here spend a lot of time on a question (I have certainly spent over an hour working on an individual question here many times) and it turns out that the question had already been answered elsewhere. To be fair, Stack Exchange or Drupal Answers Stack Exchange are probably better places to get Drupal questions answered, especially at the more techinical end of the scale, than these Drupal forums, if you are comfortable with the rather harsh culture on Stack Exchange.

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors

ahummel25’s picture

Can you link these rumors you heard to another forum where this might be solved?

John_B’s picture

It was a contributor here a few months ago who said she had seen the problem and was therefore was not sure D8 was stable enough to use IIRC. There is probably an issue about it in D8 issue queues. A bit of Googling did not lead me to the issue. It is worth you trying the same, since someone else is sure to have seen the issue and opened a ticket.

Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors

ahummel25’s picture

Will do. I'm basically able to create this at will now. Just cleared by browser cache, killed my server, restarted the site and everything is gone.

Thanks

ressa’s picture

I just had this happen to me, the bottom of the toolbar was missing (Content | Structure | Appearance etc.). It turned out I had forgotten to allow Firefox to execute scripts in my NoScript Add-on :-)

kubrt’s picture

Just happenned to me during the early stages of installation, turns out the filesystem was not fully writable (as reported under System status)