A few weeks ago, the browser functionality of the IMCE module (7.x-1.7) completely disappeared, rendering file upload into Drupal impossible. I recently discovered that I could restore the functionality when I disable the External Links Extra module (7.x-1.0-rc1). However, I need use of both modules. I wish I could provide more information than that (such as a potential diagnosis), but I am sadly not a web developer/Drupal expert.

Any advice or fixes are welcome!

Comments

jasonluttrell’s picture

StatusFileSize
new66.07 KB

I'm having the same issue.

justindodge’s picture

Thanks for the report guys - unfortunately I'm having a little trouble replicating the problem.

@sbehrman: When you say 'completely disappeared', can you elaborate on where it disappeared from? As I'm testing it I can see it either on /user/1/imce, or from ckeditor's file browser link when I insert an image. Are you saying the 'browse files' link is gone? Nothing appears in the IMCE window? Clicking files in the window doesn't work?
Which browser are you using?

@jasonluttrell: Thanks for the screen shot - but I'm actually not totally sure what's wrong with it. It looks like my IMCE does when it's working, except that you haven't selected a file. Are you able to select a file? Which browser are you using? Can you show me a screenshot that of it working well so I can compare them?

Any additional information that anyone can think of would be helpful.

jasonluttrell’s picture

StatusFileSize
new133.82 KB

I have confirmed that it is indeed the external links extra module. Once it's disabled, the toolbar reappears at the top. I'm attaching another screenshot so you can see the difference. As for not being able to select a file, that's exactly the problem. You're not able to select a file. My guess is that there's a JavaScript conflict. In Firebug's Console panel, I get an error message: "Drupal.settings.extlink is undefined." I hope this helps.

Thanks!
Jason

jasonluttrell’s picture

NOT RELEVANT- SORRY! :) (Also, though not as important, if you look at the image, there's some bogus file directories (e.g., like %b%f) that appears when I was testing/experimenting to try to get it configured properly, but do not actually exist. They won't go away.)

jasonluttrell’s picture

I'm using Firefox, by the way.

jasonluttrell’s picture

I have a Drupal 7 site, with the CKEditor v7.x-1.13 and IMCE v.7.x-1.7. I got it so that the image dialogue box in the CKEditor opens up IMCE File Browser in a separate window. Now, I see the contents of the folder, but I cannot select any of the files, preview any of the images, and there are no buttons such as Upload.

I searched and searched and searched until I read that the External Links Extra module was possibly causing a conflict and I confirmed that this was the case for me.

EDIT: Sorry, I removed irrelevant info that was pertaining to a different Drupal module.

justindodge’s picture

@jasonluttrell: Thanks for the clarifications - the JS error you're reporting is especially helpful.

I believe the problem is related to changes that occurred in the latest version of extlink which I need to accommodate. The version working for me is 7.12, but I observe this error with extlink 7.13. Can you confirm this is the version you're running as well?

jasonluttrell’s picture

extlink: 7.x-1.13
extlink_extra: 7.x-1.0-rc1

justindodge’s picture

Okie doke - looks like the change in #1899000: add js through hook_page_build() and not hook_init() for extlink causes hook_page_build instead of hook_init to loads its javascript, so in the iframe where IMCE is loading (/imce) extlink.js was not loaded (which is appropriate) but extlink_extra.js was - which caused the error.

Since the general recommendation/best practice for loading JS on every page is hook_page_build, I'm following the footsteps of extlink module in this regard.

This change is now committed to 7.x-1.x-dev and should resolve the IMCE issue. It will take a few minutes for the dev version to update (unless you are checked out with git), but please test it out when you get a chance.

This fix will be in the next official release (7.x-1.0 RC2).

justindodge’s picture

Status: Active » Needs review

Forgot to mark 'needs review'.

jasonluttrell’s picture

I tested the change on my end and it worked. Thanks! :)

sbehrman’s picture

Just checking back to this post. Thank you jasonluttrell and justindodge for resolving this issue without my help.

bbc’s picture

I've tested this change as well. Works like a charm!

bousley’s picture

Issue summary: View changes

I'm having this same issue again. Using IMCE. Using ColorBox.

justindodge’s picture

Bousley, what version of the module are you using?

codevoice’s picture

Hello, I'm getting this error as well. I'm on 7.x-1.0-rc1, and I see above that you say you committed the fix to 7.x-1.x-dev a year ago, and that it would be in 7.x-1.0-rc2. Any chance of getting an 7.x-1.0-rc2 release, or should we go ahead and use -dev?

justindodge’s picture

Status: Needs review » Closed (fixed)

Guys, I'm releasing rc2 at this exact moment. Please update your version of the module when you get a chance and let me know if your issues are resolved.

I'm going to marked 'fixed' for now because I was pretty sure this was resolved a while back in dev.