Opening the photoswipe settings will lead to several js errors in the console

Created on 9 August 2023, over 1 year ago
Updated 11 October 2023, about 1 year ago

Problem/Motivation

When opening the photoswipe settings ("/admin/config/media/photoswipe"), several js errors appear in the console:

contextual.js?v=10.1.1:23 Uncaught TypeError: Cannot read properties of undefined (reading 'permissionsHash')
    at contextual.js?v=10.1.1:23:47
    at contextual.js?v=10.1.1:313:3
StateModel.js?v=10.1.1:17 Uncaught TypeError: Cannot set properties of undefined (setting 'StateModel')
    at StateModel.js?v=10.1.1:17:32
    at StateModel.js?v=10.1.1:130:3
AuralView.js?v=10.1.1:11 Uncaught TypeError: Cannot set properties of undefined (setting 'AuralView')
    at AuralView.js?v=10.1.1:11:31
    at AuralView.js?v=10.1.1:59:3
KeyboardView.js?v=10.1.1:11 Uncaught TypeError: Cannot set properties of undefined (setting 'KeyboardView')
    at KeyboardView.js?v=10.1.1:11:34
    at KeyboardView.js?v=10.1.1:62:3
RegionView.js?v=10.1.1:11 Uncaught TypeError: Cannot set properties of undefined (setting 'RegionView')
    at RegionView.js?v=10.1.1:11:32
    at RegionView.js?v=10.1.1:75:3
VisualView.js?v=10.1.1:11 Uncaught TypeError: Cannot set properties of undefined (setting 'VisualView')
    at VisualView.js?v=10.1.1:11:32
    at VisualView.js?v=10.1.1:109:3
toolbar.menu.js?v=10.1.1:15 Uncaught TypeError: Cannot read properties of undefined (reading 'currentPath')
    at toolbar.menu.js?v=10.1.1:15:51
    at toolbar.menu.js?v=10.1.1:208:3
escapeAdmin.js?v=10.1.1:16 Uncaught TypeError: Cannot read properties of undefined (reading 'currentPathIsAdmin')
    at escapeAdmin.js?v=10.1.1:16:15
    at escapeAdmin.js?v=10.1.1:45:3
ajax.js?v=10.1.1:486 Uncaught TypeError: Cannot read properties of undefined (reading '')
    at new Drupal.Ajax (ajax.js?v=10.1.1:486:38)
    at Drupal.ajax (ajax.js?v=10.1.1:267:18)
    at big_pipe.js?v=10.1.1:22:29
    at big_pipe.js?v=10.1.1:138:3
drupal.js?v=10.1.1:64 Uncaught TypeError: Cannot read properties of undefined (reading 'currentQuery')
    at Object.attach (active-link.js?v=10.1.1:25:47)
    at drupal.js?v=10.1.1:166:24
    at Array.forEach (<anonymous>)
    at Drupal.attachBehaviors (drupal.js?v=10.1.1:162:34)
    at drupal.init.js?v=10.1.1:32:12
    at HTMLDocument.listener (drupal.init.js?v=10.1.1:20:7)

These all seem to be drupalSettings variables.

Steps to reproduce

Proposed resolution

Fix the issue causing these js errors.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: cannot reproduce

Version

5.0

Component

Code

Created by

🇩🇪Germany Grevil

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

Comments & Activities

Production build 0.71.5 2024