IMCE WSOD when js aggregate

Created on 12 September 2023, about 1 year ago
Updated 16 November 2023, about 1 year ago

Problem/Motivation

When I enable "Aggregate JavaScript files" with Gin admin theme, IMCE not work and displays a white screen (url : /imce).
The JS console log : "Uncaught TypeError: can't access property "classList", document.querySelector(...) is null".

When I disable "Aggregate JavaScript files", everything works perfectly.

If I use Claro theme, everything works perfectly, with or without "Aggregate JavaScript files".

Versions:

  • Drupal 10.1.3
  • Gin dev-3.x (same with 3.0.0-rc6)
  • IMCE 3.0.9
🐛 Bug report
Status

Closed: cannot reproduce

Version

3.0

Component

Code

Created by

🇫🇷France slayne40

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

Comments & Activities

  • Issue created by @slayne40
  • Status changed to Postponed: needs info about 1 year ago
  • 🇨🇭Switzerland saschaeggi Zurich

    We need more information on this. Which JS file is causing the issue?

    Otherwise we'll not be able to debug this aggregation issue.

  • Status changed to Closed: cannot reproduce about 1 year ago
  • 🇨🇭Switzerland saschaeggi Zurich

    Closing as needed information is missing. Please reopen when this still happens and you area able to reproduce it with steps.

  • 🇨🇦Canada anjor.rao

    Hello,

    I am experiencing a similar issue where the IMCE file browser is not visible when JS aggregation is enabled.

    Steps to reproduce:

    1. Enable IMCE File Manager setting -> Common settings -> Use admin theme for IMCE paths.
    2. Enable Performance -> Aggregate JavaScript Files.
    3. Clear the cache.

    Versions:
    Drupal 10.1.6
    IMCE: 3.0.9

  • 🇫🇮Finland AV-4

    We are experiencing the same error, but do not have Aggregate JS-files enabled. When switching to Claro IMCE works again.

    Drupal 10.1.6
    Gin 8.x-3.0-rc7
    IMCE 3.0.9

  • 🇨🇭Switzerland saschaeggi Zurich

    See 🐛 The IMCE file browser is not visible when JS aggregation is enabled. Postponed: needs info more debugging is needed and/or a patch.

Production build 0.71.5 2024