I'm running IMCE 6.x-1.1 with fckeditor 2.0 on drupal 6.6, and I'm unable to select subdirectories in IMCE. I can upload images just fine, I can see sub-directories on the left, I just can't click on them. I've chmod'd all 'files' directories to 777. In IMCE settings, I have include subdirectories checked as well as browse, etc.

Any ideas what the problem may be? I'm stumped.

Comments

gateone’s picture

Same problem here, too. This time using TinyMCE.

raspberryman’s picture

Same here, with TinyMCE.

raspberryman’s picture

I fixed my instance of this problem.

IMCE is incompatible with the Google Analytics module. To fix, I added "imce/*" to the list of "Add to every page except the listed pages" in the Google Analytics module settings.

georgedamonkey’s picture

Simply brilliant, thank you!!!

Adding in that line didn't work for me, I ended up having to completely uninstall the google analytics module. Which is a shame, but so far I like Woopra better anyway.

Thank you so much for posting what fixed it for you!

gateone’s picture

The problem seems not alone in the Google Analytics Module but in the combination of this and the JavaScript Optimization in Drupal's admin/settings/performance: as long as I have "Optimize JavaScript" activated, it won't work. The moment I switch JS optimization off in Drupal, it will work - it is important though to exclude imce/* from the pages Google Analytics will be included...

gateone’s picture

Good news: there is a way to make IMCE's sub-directory browsing work WITH Google Analytics AND JavaScript Optimization: in admin/settings/googleanalytics, at the bottom of the settings page, you can move the GA JavaScript code from the footer of the page to the header of the page. I haven't further analyzed it, but it seems to change the order the various JS code is loaded and with this setting (including the exclusion of Google Analytics on imce/* pages) it is working.

Now I know that Google recommends having the Analytics JS code at the end of a page, not at the top, for performance reasons. Gladly, GA's performance has been quite good in the recent months but you can use the advanced setting to use a cached version of the GA code and only have it updated directly from Google once every 24 hours if you are really performance paranoid ;-)

jon nunan’s picture

I'm having the same problem. Seems to be something to do with imce.navigate function not getting called properly...

Wen't back to non-ajax loading of directories by commenting out the following line in the dirClickable function found in imce.js

// $(branch.a).attr('href', '#').removeClass('disabled').click(function() {imce.navigate(this.title); return false;});

Its strange because if I call the imce.navigate function from within firebugs console it works?!

georgedamonkey’s picture

Sigh... I've tried all of the things mentioned, and none of it works for me. Only thing that works is completely removing the google analytics module. In all honesty, I prefer Woopra anyway. But, it would be nice if GA worked as well. Ah well.

Harpreet Singh’s picture

Hi everyone

Got the same problem and tried all the solutions above, but nothing worked. Instead of using the mouse to browse the directories or sub-directories, try to navigate with ARROW-Keys (up, down, left, right, home, end) This worked.

happysnowmantech’s picture

I ran into the problem on IE (but not Firefox) with Google Analytics and used the same "imce/*" fix. The symptoms I saw in IE6 were: "Error on page" message when I click on the directory, and when I looked in the script debugger for details, I saw the message "pageTracker not defined".

mnordstrom’s picture

Sigh. One more experiencing this problem. None of the suggested solutions are helping, except the one which suggested commenting out one line out of imce.js, but this option led to other functionality not working. Not even deleting the Google Analytics module helped. Tried disabling some other modules too which are based on JavaScript, with no success.

The links for subdirectories and Upload do absolutely nothing, the link points to imce# (in the browser's status bar, too). However, the source code of the File Browser have them correctly like follows: <a href="/imce?dir=images" title="images" class="folder active">images</a>. If I try directly putting /imce?dir=images to the address bar, it goes to the correct directory but the problems themself persist. The behavior of Firefox and IE7 is the same in all aspects.

The other links work as they should, but the file view doesn't update itself when deleting/resizing files without reloading the page.

Help greatly appreciated, as always.

mnordstrom’s picture

Continued from the previous post.

Tested to install a fresh Drupal with exactly the same set of modules than on the site I'm working on. The result: everything works perfectly, even though Google Analytics is enabled, in the footer etc.

So, it's probably some not-still-mentioned-about setting somewhere.

mnordstrom’s picture

I noted one more bug:

If Devel Theme Developer module is enabled, the following error appears when trying to open the IMCE popup: TypeError: doc.body is null. Disabling that module is enough to get rid of this problem.

mnordstrom’s picture

Does someone know when this module's maintainer is coming back? :( This would be a perfect solution for the site I'm building. I have a deadline in the end of this month and unless I get this to work, I have to figure out some worse way for the time being.

ipwa’s picture

Thanks so much for the tip, I was going crazy during a site migration thinking that BUeditor wasn't working well and IMCE hadn't upgraded well, because when I clicked the BUeditor link or image button (which use IMCE if enabled) the textarea stopped working, and the button turned red. Wehn I tried it in FF I got the same error as you. I disabled devel and everything was fine. Maybe IMCE and BUEditor should have a warning on the documentation that they don't work well when Devel is enabled.

meppy’s picture

Instead of imce/* try

imce*

I just did this and it works now where none of the above helped. Put this in the Add tracking to specific pages: section of the Google Analytics module.

mckeen_greg’s picture

Subscribe, I too am having difficulties. Installed the latest versions of FCK and IMCE and worked with solutions outlines above (except hacking at the code) and still no progress with sub-directories.

meppy’s picture

Did you try my fix directly above? It's a subtle difference but works perfectly for me.

mckeen_greg’s picture

meppy :)
Tried your solution too, everything that seemed rational without having to hack away at code. I have both: imce/* and imce* set, and neither works...

ufku’s picture

can you create an online demo for this issue?

imclean’s picture

Excluding imce* worked for me with IE. A shift-refresh on the Edit page did the trick, or you could clear the cache (temp internet files).

XerraX’s picture

Subscribing

pal_ur’s picture

Subscribing

ufku’s picture

Status: Active » Closed (fixed)

Closing 6.x-1.x issues as this branch is no more supported.