Broken menu visualization for anonymous user since drupal 10.4

Created on 8 January 2025, 12 days ago

Problem/Motivation

After the update to Drupal 10.4, main menu for anonymous users only is no more displayed correctly: no working breakpoint, always open drop-menu shown just as an HTML unordered list

Steps to reproduce

My Drupal site is actually running with PHP 8.2.10, but I have the same problem with PHP 8.3.14.
No such a problem up to the last Drupal 10.3 release
I updated as usual drupal manually (it's impossible for me to run composer on the hosting server) to 10.4.0 and the problem above arose.
Only anonymous users can see this problem. Responsive menu is working correctly for logged or admin users.
Same problem with Drupal 10.4.1
Same problem with both using adaptivetheme 7.1.0 and adaptivetheme 8.x-5.4

Proposed resolution

None.
I couldn't find any useful/missing setting in Roles or Permissions.
The issue should be necessary related to a change from Drupal 10.3 to Drupal 10.4
Any dependecy gone missing in the update?

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

7.1

Component

Miscellaneous

Created by

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

Comments & Activities

  • Issue created by @ilcalle78
  • πŸ‡ΊπŸ‡ΈUnited States wmfinck

    Thank you I have this same problem, and this post came up first when I searched Google for "drupal adaptive menus expanded for anonymous users". I just noticed the problem this morning, since I rarely visit sites I manage without being logged in, once development is completed.

    I have eight D10 sites, all using this theme, all on the same server. This morning I set out to update them all to D10.4 and the very first one I updated is having this problem, so I will stop here for now. This also exemplifies why I have never automated my upgrades.

  • πŸ‡·πŸ‡ΊRussia a_sh

    I have this same problem too.

    Any solution?

  • Please check issue 3495319 πŸ› Uncaught TypeError: Cannot read properties of undefined (reading 'theme') Active . I guess the asset ordering change is causing this.

  • I don't get any error, neither in log nor using "verbose" mode, and the same happens after cache cleaning.

    By the way I noticed that also the SLIDESHOW doesn't work for anonymous users, while it still works correctly for logged ones.

  • Yes, same kind of error when using anonymous

    js_2JgqE6kUMjTFgeB0GkUbHSTkMck6du2Uq8cNsaDYP10.js?scope=footer&delta=0...-VM8Q:22 Uncaught TypeError: Cannot read properties of undefined (reading 'theme')
        at Object.attach (js_fE8OE5f7_hWnFmvQEIqXIGJtl-8CIT3r9ZiZC5kNeGc.js?scope=footer&delta=2...-VM8Q:2:139)
        at js_2JgqE6kUMjTFgeB0GkUbHSTkMck6du2Uq8cNsaDYP10.js?scope=footer&delta=0...-VM8Q:22:427
        at Array.forEach (<anonymous>)
        at Object.attachBehaviors (js_2JgqE6kUMjTFgeB0GkUbHSTkMck6du2Uq8cNsaDYP10.js?scope=footer&delta=0...-VM8Q:22:353)
        at js_2JgqE6kUMjTFgeB0GkUbHSTkMck6du2Uq8cNsaDYP10.js?scope=footer&delta=0...-VM8Q:23:373
        at HTMLDocument.listener (js_2JgqE6kUMjTFgeB0GkUbHSTkMck6du2Uq8cNsaDYP10.js?scope=footer&delta=0...-VM8Q:23:161)
  • πŸ‡ͺπŸ‡ΈSpain hip GijΓ³n, Asturias

    Following. Same here (broke my theme in different points).

Production build 0.71.5 2024