I updates FCKEditor with the latest version. I have added cookies_domain in setting.php as well as ..." require_once '../../../../../filemanager.config.php';" in config.php.

I had set the directory for images as '/sites/default/files/userfiles/' ; But now FCKEditor is not browsing to that location. It is browsing to " '/sites/default/files/" and has created a image folder there. All my images are at this location "/sites/default/files/userfiles/images".

Please suggest -- how to fix this?

Swapnil

Comments

jorrit’s picture

Status: Active » Postponed (maintainer needs more info)

Where did you set the images directory? You should look in the settings for your FCKeditor profile in the Drupal administration panel.

arnieswap’s picture

I set it in Config.php

$Config['UserFilesPath'] = '/sites/default/files/userfiles/' ;

However, if I copy paste the old config files it shows all the directories in the inbuilt file browser.

But then it shows error in the Update section that I need to add "require_once '../../../../../filemanager.config.php". The moment I add this line, the File Browser browses the image directory and not the one specified by the script.

Thanks in advance..

Swapnil

jorrit’s picture

Category: bug » support
Priority: Critical » Normal

It should work under the following conditions:

- No changes have been made to filemanager.config.php except the addition of the mentioned line
- At Administer -> Site configuration -> File system, set:
- File system path: sites/default/files
- Download method: public
- At your FCKeditor profile, set the following in the section File browser settings
- Path to uploaded files: %b%f/userfiles/
- Absolute path to uploaded filesL %d%b%f/userfiles/

Please let me know which settings differed from the settings you had.

arnieswap’s picture

Status: Postponed (maintainer needs more info) » Active

Hi Jorrit,

Thanks for guidelines.

The settings were :
- Path to uploaded files: %b%f/
- Absolute path to uploaded files: %d%b%f/

I changed to below as suggested by you, and now it can browse to the folders.
- Path to uploaded files: %b%f/userfiles/
- Absolute path to uploaded files: %d%b%f/userfiles/

Thanks a lot.

Swapnil

arnieswap’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.