The IMCE file browser is not visible when JS aggregation is enabled.

Created on 6 November 2023, 8 months ago
Updated 23 May 2024, about 1 month ago

Problem/Motivation

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
Gin Admin Theme: 8.x-3.0-rc7

πŸ› Bug report
Status

Closed: cannot reproduce

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada anjor.rao

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

Comments & Activities

  • Issue created by @anjor.rao
  • Status changed to Postponed: needs info 8 months ago
  • πŸ‡¨πŸ‡­Switzerland saschaeggi Zurich

    Can you check if this problem also appears in Claro? Maybe you're using AvgAgg? AvgAgg has some abandoned CSS & JS processors which can break Claro & Gin (JSqueeze for example).

  • πŸ‡¨πŸ‡¦Canada anjor.rao

    I checked the issue in the Claro theme, and the File browser is visible. As for AvgAgg, I am not using this module.

  • πŸ‡¨πŸ‡­Switzerland saschaeggi Zurich

    Then I'd look out for any JS errors on the site

  • πŸ‡¨πŸ‡¦Canada anjor.rao

    Hello, I've attached a screenshot. Could you please take a look? I tried checking if the Coffee module was causing any issues, but that doesn't seem to be the case. Additionally, I didn't see any JS errors on the Claro theme. Should I create an issue in the core project?

  • πŸ‡¨πŸ‡­Switzerland saschaeggi Zurich

    Can you expand the error messages so we can see where in the code the error occurs? TY

  • πŸ‡¨πŸ‡­Switzerland saschaeggi Zurich
  • πŸ‡ΊπŸ‡ΈUnited States jon.lund

    I can confirm that I am experiancing the same issue. When js aggrigation is turned on imce browser does not render. This only happens with Gin as the Admin Theme, it does not happen in either Claro or Olivero.

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

  • πŸ‡¨πŸ‡¦Canada anjor.rao

    Hello,

    Please find the attached files. Let me know if you need more information.

  • πŸ‡¨πŸ‡­Switzerland saschaeggi Zurich

    @anjor.rao thanks for sharing. I don't see the relation why Gin would break this so far as the error seems that Backbone.Model is not set and we don't use Backbone in Gin nor do we set any dependency on it.

  • πŸ‡¨πŸ‡¦Canada anjor.rao

    @saschaeggi, I checked similar JS files in the Claro theme; however, there are no errors. Please confirm if this falls under the Gin project's scope, or should I raise this issue in Drupal Core?

  • Status changed to Closed: cannot reproduce about 1 month ago
  • πŸ‡¨πŸ‡­Switzerland saschaeggi Zurich
Production build 0.69.0 2024