When I open the IMCE File Browser in FCKeditor, I end up in the system root rather than the desired directory (explanation: Drupal is installed in a subfolder in this case). I guess IMCE has trouble detecting this and thus sends me to the base folder, where it cannot detect a /sites/all/files folder?

Do I have to set the root path somewhere?

CommentFileSizeAuthor
#3 perms.png15.03 KBcrutch
#3 imce-file.png8.67 KBcrutch
#3 imce-file2.png10.05 KBcrutch

Comments

eigentor’s picture

I got the same problem. IMCE starts in a very strange directory, even outside my drupal directory. Apart from not working, this is downright dangerous because a user could browse directories he was never supposed to see.

crutch’s picture

Are you logged in as a subscriber or an admin? Admin will be able to see the whole file structure but a subscriber should only see and have access to their user folder. Check permissions and check IMCE. You need to set up IMCE profiles. You want to set the directory path for users like in attached screenshot, using

u%uid

u = the prepended name of the folder and then their user ID should be attached to it. Each user should have their own file folder like - u4.

- check permissions to make sure you haven't allowed subscribers to administer files under the System Module.

crutch’s picture

Issue tags: +imce, +user profile, +permissions, +file, +image
StatusFileSize
new10.05 KB
new8.67 KB
new15.03 KB

oops, screenshots

eigentor’s picture

@crutch, no, this is a different problem.
Anyway, I solved it for my case.

The Problem was, that I have to force the "browse Server" Button to appear at all by inserting the following Code into "advanced options" for my fckeditor profile:

LinkBrowser= true;
ImageBrowser= true;
FlashBrowser= true;
LinkBrowserURL= '/?q=imce/browse';
ImageBrowserURL= '/?q=imce/browse';
FlashBrowserURL= '/?q=imce/browse';

However, the error is that that URLs given have to be changed if you use a subfolder. here is what works:

LinkBrowser= true;
ImageBrowser= true;
FlashBrowser= true;
LinkBrowserURL= '/path/to/rootfolder/?q=imce';
ImageBrowserURL= '/path/to/rootfolder/?q=imce';
FlashBrowserURL= '/path/to/rootfolder/?q=imce';

It made the browse window appear for me just fine. Certainly you've got to replace /path/to/rootfolder/ with the subdirectory you installed Drupal in.

ufku’s picture

Category: bug » support
ufku’s picture

Status: Active » Closed (fixed)
Issue tags: -imce, -user profile, -permissions, -file, -image

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