Closed (fixed)
Project:
IMCE
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2008 at 03:42 UTC
Updated:
19 May 2011 at 21:23 UTC
Jump to comment: Most recent file
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?
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | perms.png | 15.03 KB | crutch |
| #3 | imce-file.png | 8.67 KB | crutch |
| #3 | imce-file2.png | 10.05 KB | crutch |
Comments
Comment #1
eigentor commentedI 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.
Comment #2
crutch commentedAre 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%uidu = 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.
Comment #3
crutch commentedoops, screenshots
Comment #4
eigentor commented@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.
Comment #5
ufku commentedComment #6
ufku commentedClosing 6.x-1.x issues as this branch is no more supported.