When I go to edit a page in CkEditor, the IMCE button pulls up a completely blank window. When I look at the source it does include several IMCE js files.

I've got IMCE working on one site and not working on 3 others. I've tried to make everything identical to the working site.

I enable IMCE in "Extend"
I add the IMCE picture and link button to the panel on "Content Authoring/Full HTML"
My User Role in IMCE configuration has a profile, that profile has the directory set to . and all permissions.
My user for this is Admin and has all permissions set for everything.

The working site is using 8.1.1 and IMCE 8.x-1.1 so I downgraded one of the non working sites to the same and that didn't help.

I'm using the default theme for this.

What could I be missing?

Comments

vayu’s picture

The one site I had working stopped working after I deleted a role that wasn't used by any user. I have 5 different installs that I can't get IMCE to work on. It's perplexing because I'm pretty sure I understand it and am doing it right, yet I can't find any other reports of the same thing. So what am I missing?

vayu’s picture

Removing the Toolbar anti-flicker module which was installed for the Admin Toolbar solved it for all but one of my installs. On that one the theme was also interfering. That was solved by attaching my js and css libraries in the html.html.twig file and making an html--imce--html.twig file without those libraries attached.

flyke’s picture

I had the same problem: blank popup when opening imce file browser.
I am using a custom theme. I simply copied html.twig from core\themes\stable\templates\layout\html.html.twig and renamed it to html--imce.html.twig in my custom theme. Cleared the cache and now the imce file browser is working.

Adon Irani’s picture

+1 worked like a charm.

shubhangi1995’s picture

worked for me too.

damondt’s picture

Another way this can happen is if you have overridden the default html.html.twig or through other means changed attributes on the body tag.

johnwebdev’s picture

Yep, this could be your issue (future reader), we had this issue. Make sure the attributes are added on the body-tag.

chrisvasey’s picture

I disabled JS aggregation in /admin/config/development/performance - this fixed it for me.

JustJon09’s picture

this was a super quick fix thank you
Drupal 8.4
nginx

druliner’s picture

Disabling JS aggregation worked for me as well. But I'm concerned about performance implications. Is there a better way to fix this?

cbwiedel’s picture

New issues for IMCE 3.0.9 - JS aggregation white screen:
https://www.drupal.org/project/imce/issues/3407149