When you enable admin_toolbar_tools you lose the drop down menus which more or less defeats major reasons why this module exists. To duplicate it just go to https://simplytest.me/project/admin_toolbar and enable the module.

or alternatively, this issue can be reproduced by:

  • getting a clean D8 install (or a installation where admin_toolbars is not installed)
  • get version 8.x-1.x-dev of admin_toolbar
  • go to extend and install admin_toolbar_tools (this will force the installation of admin_toolbar)
CommentFileSizeAuthor
#2 Extend___admin_toolbar_8_x-1_21.png254.44 KBadriancid
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Christopher Riley created an issue. See original summary.

adriancid’s picture

Hi @Christopher Riley thanks for reporting, can you use the next time the Issue Summary Template?

I can't reproduce the issue, can you add steps?

See the image, is working fine for me.

img

adriancid’s picture

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

@Christopher Riley can you test the patch submitted in #2925327: Better check for is-link-in-admin-menu for local task links to see if fix the problem?

specky_rum’s picture

Hi,

I get this problem too since updating from 1.20 -> 1.21. None of the drop downs work. If I uninstall admin_toolbar_tools it almost goes back to working perfectly except that the Appearance, Extend and People menus still don't have drop downs. All the others do.

Notable also that the styling changed slightly. When it's working there are border lines between the menus. When it's not it's using a plain black background. with no border lines.

The patch didn't seem to make any difference either with the admin_toolbar_tools module enabled or not.

Reverting to 1.20 fixes the problem.

Christopher Riley’s picture

Sorry the patch didn't fix the issue. I patched the file, flushed the cache refreshed the page and no luck. I then proceeded to uninstall and reinstall the module and still no luck.

Suggestions?

pedrodacosta’s picture

I think that there might be two separated issues being disscused here.
On one hand, we have the problem of all dropdowns being disabled when admin_toolbar_tools is enabled

and on the other hand the missing dropdowns on Appearance, Extend and People mentioned by @specky_rum
which if I understand correctly with admin_toolbar_tools disabled, that's not really a bug
it's just that the options that would appear under those elements are the links that the admin_toolbar_tools module is supposed to add, the administration menu doesn't have any items under those elements by default

but I'm getting that same behaviour (no dropdowns on Appearance, Extend and People) WITH admin_toolbar_tools installed (the other items are working fine)

I'm getting this two issues only on 8.x-1.x-dev branch (both work ok for me when using 8.x-1.21)

to reproduce the fist issue (no dropdowns) do:

  1. get a clean D8 install (or a installation where admin_toolbars is not installed)
  2. get version 8.x-1.x-dev of admin_toolbar
  3. go to extend and install admin_toolbar_tools (this will force the installation of admin_toolbar)

You will expect to have dropdowns on all items, but none of them will appear

Also, I've found that if you

  • on a clean install, first install admin_toolbar and after it completes the install, install admin_toolbar_tools
  • or after you installed the two modules together, uninstall admin_toolbar_tools and install it again

this will fix Structure, Configuration and Reports tabs but not the others (Appearance, Extend and People)
so, I think there's another issue here, probably closely related but not exactly the one that was originally reported on this issue
I've created a separated issue for it: admin_toolbar_tools is not creating links on Appearance, Extend and People when installed.

the patch on #2925327: Better check for is-link-in-admin-menu for local task links doesn't seems to affect any of this (tried all this with and without it without seeing any change)

pedrodacosta’s picture

Issue summary: View changes
pedrodacosta’s picture

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

Reverting to 1.20 please!!!.

adriancid’s picture

@kvantstudio you can always use the 1.20 we are trying to find the problem (I will try to reproduce with the steps added by @pedrodacosta) but if you feel that you should use the 1.21 please help us to find the solution.

adriancid’s picture

@pedrodacosta I follow all your steps in a fresh Drupal 8 site but I can't reproduce this issue.

Christopher Riley’s picture

I just tried the latest development version and it seems that we have dropdowns if the menu is in horizontal mode but not in vertical. Can anyone else verify this?

adriancid’s picture

adriancid’s picture

Hi to @all, thanks for your patient and for report the issue with this problematic new version, sorry for this but the module was really working for me and for the others maintainers before the last release, even for other users that test the module before the new release.

As we can't reproduce all the issues reported in the new release version and as it seems that they comes from #2897309: admin_toolbar_tools module makes all pages uncacheable we have removed the code from the actual dev version and we need your help (as you can see the error, but we can't reproduce the issue) to know if now the module is working fine. So please install the latest dev version and provide some feedback about this issue.

As it seems that is a problem with the cache is better handle the problem in #2925501: Menu does not take changes into account (caching issue).

Our sincere apologies and thanks for helping us to improve this module so used by the community.

adriancid’s picture

Somebody can confirm that this is solved in the actual dev?

As I'm not able to reproduce this issue I need a help from us. We are planning a new release in this days.

Christopher Riley’s picture

This is super frustrating and I am sure you are ready to pull your hair out. I grabbed the latest Dev version removed all patches and gave it a whirl. Again as soon as admin_toolbar_tools is loaded and you clear your cache and jump to a few pages you suddenly lose the dropdown arrows and dropdown capability when you are using the menu as a sidebar. I did notice that there is a javascript error that shows when I have the module installed that does not show up when just using admin_tools or just the stock toolbar. The error is as follows:

AjaxError:
An AJAX HTTP error occurred.
HTTP Result Code: 403
Debugging information follows.
Path: /toolbar/subtrees/eIg4qhG-pFsZ1Mc473TMG6dILNmsbsSBExERxvSEIe8
StatusText: Forbidden
ResponseText: {"message":""}

Willing to assist however I can just need to be pointed in a direction.

Thanks

eme’s picture

Hum, your error seems odd. We do not make any use of AJAX callback. It was on a specific page / action or just random ?

adriancid’s picture

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

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closing because we don't feedback, but you can feel free to reopen in the future :-)

RaphaelBriskie’s picture

Status: Closed (cannot reproduce) » Needs review

@adriancid I had the same issue as @christopher-riley with the drop downs not appearing and the ajax errors.

Turns out it was the Toolbar Menu module restricting the menu depth, see my comment here for how I was able to fix it:

https://www.drupal.org/project/toolbar_menu/issues/2945706

Not sure if any action is required for this module but just thought I'd post this in case it helps someone else.

adriancid’s picture

Status: Needs review » Active
Christopher Riley’s picture

After pounding my head against the wall while tracking down another issue I finally am getting closer I hope. It appears that if I enable the login_destination module this is when I lose the icons. I haven't had the time to do an in-depth comparison but will update this when I think I have a handle on it. In the meantime anyone else using login_destination and not seeing the issue?

Christopher Riley’s picture

It appears that when login_destination is enabled that the following is getting dropped:

<button class="toolbar-icon toolbar-handle"><span class="action">Extend</span><span class="label">Content</span></button>

Suggestions?

adriancid’s picture

In this case, I think that this issue belongs to the login_destination issue queue.

veerabhadra’s picture

Hi Christopher Riley
I tested the steps you reported and it working as expected.
Christopher Riley could this problem depend on other modules or custom code?

jeeba’s picture

Hey! I just discovered something. When the menu is in the Top, its works,

http://global.josekatech.com/drupal1.png

but when its positioned lateral, I got that 403 error.

http://global.josekatech.com/drupal2.png

I'm using Varbase!

tclark62’s picture

I can confirm that using this module in conjunction with Login Destination causes a conflict. When I uninstall Login Destination, I no longer receive this Ajax error and the vertical toolbar functions properly. I'm using the most recent version of Admin toolbar (8.x-1.26).

justcaldwell’s picture

I agree with @adriancid that this is likely an issue with Login Destination. Adding the related issue from the Login Destination queue.

adriancid’s picture

Status: Active » Closed (works as designed)

I'm closing this issue as it seems the problem comes from Login Destination.