Administration Toolbar Missing Elements

Created on 20 February 2024, 10 months ago
Updated 22 February 2024, 10 months ago

Problem/Motivation

Missing administration toolbar submenu

Steps to reproduce

I have installed three Drupal 10.2x websites using composer on two different servers over the past few days, as recently as this morning. For all three I have used the standard install commands "composer create-project drupal/recommended-project " and "composer require drush/drush"

The servers have near-identical configurations, except that one is running under Plesk with MariaDB 10.3.39 (using the same php install in the shell), and the other is configured manually with MariaDB 10.6.17.

On one of these websites, I cannot get the Admin submenu toolbar to appear, and after several hours trying to figure it out I have reinstalled from scratch. But it still won't appear. I have cleared caches manually and with "drush cr" and I have uninstalled/reinstalled the core toolbar module several times to no avail. So far there are no added themes or modules to the site where the toolbar will not appear.

This is what is expected:

This is the issue:

So some user account information is also missing from the admin toolbar, as well as the entire submenu.

I apologize if the labels used here are not precise, but I am not a developer.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ’¬ Support request
Status

Closed: outdated

Version

10.2 ✨

Component
ToolbarΒ  β†’

Last updated 27 days ago

  • Maintained by
  • πŸ‡«πŸ‡·France @nod_
Created by

πŸ‡ΊπŸ‡ΈUnited States wmfinck

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @wmfinck
  • You could export the configurations and compare them.

    Which site is showing the problem? I guess it is the Plesk site based on how this is written.

  • πŸ‡ΊπŸ‡ΈUnited States wmfinck

    Thank you for your reply.

    Yes, the Plesk based site has the problem, but last night I installed a site on a Rocky 9 server I configured myself, so that I could try out some themes, and it also has the same problem! Two weeks ago I configured the Alma 8 and Rocky 9 servers side-by side, preparing for Centos 7 EOL so that I can prepare for Drupal 7 EOL.

    So I downloaded the configurations from both sites, extracted them into different folders and ran diff against the folders. But I cannot see anything of substance, except that one site has a couple of modules, blocks and themes which are not installed on the other. I will upload that diff file here.

    https://www.drupal.org/files/issues/2024-02-21/site_config_diff.txt β†’

    I opened all of the system.menu.*.yml files and compared them visually. The only differences are UUIDs.

    Looking for documentation, I did learn that the missing toolbar is called the "Shortcut Bar". But comparing the two sites, I do not see any differences in the menu systems or core modules, or anything else which might give me a clue. I have been at this on and off for days. Now I am going to try to find out which YML files stores the admin bar configuration, if it is not those I have just mentioned.

    Thanks!

  • πŸ‡ΊπŸ‡ΈUnited States wmfinck

    I hate to be a pest.

    I think this problem might have to do with not displaying dropdown or responsive menus. Out of the 3 websites, the one that does not have this shortcut bar problem is only the only one on which Adaptive's responsive menu is properly functioning.

    My entire Status report on all three servers is positive, with all issues and recommendations having been satisfied. So I cannot imagine what I might be missing.

  • πŸ‡ΊπŸ‡ΈUnited States wmfinck

    This is on a perfectly clean install, and my logs are filled with errors. I had not checked the logs, because I would not have expected this on clean installs... these were rather immediate, may have even been at installation time.

    Symfony\Component\HttpKernel\Exception\BadRequestHttpException: The theme must be passed as a query argument in Drupal\system\Controller\AssetControllerBase->deliver() (line 132 of /var/www/.../testing/web/core/modules/system/src/Controller/AssetControllerBase.php).

    a few of these later... ("testing" is only a subdomain name on the server, I am not a developer)

    Deprecated function: Creation of dynamic property Drupal\at_core\Layout\Layout::$layout_path is deprecated in Drupal\at_core\Layout\Layout->__construct() (line 27 of /var/www/.../testing/web/themes/contrib/adaptivetheme/at_core/src/Layout/Layout.php)

    I have two pages of these, on a fresh install, and the Symfony errors are much more numerous. The site I installed where the menus are functioning have no such errors. Now maybe I know what to look for. But this is definitely a core install problem.

    I am running Composer version 2.7.1.

  • πŸ‡ΊπŸ‡ΈUnited States wmfinck

    I found and solved the problem. Cloudflare. FOr some reason, one site out of three was not effected.
    I disabled Cloudflare proxy, the menus appeared immediately. I enabled it, and the menus are still there. For how long, I wonder, but at least I know what the problem is.

    Sorry if I bothered anyone, but maybe it will help someone down the road. Thanks!

  • Status changed to Closed: outdated 10 months ago
Production build 0.71.5 2024