Hi,
I have FCKeditor installed, I can insert images but they are not displayed when I look at the posting. Reading some old post on similar issues, I made sure that Input Format was set to "Full HTML". The source code of the displayed page shows the image being referenced is /drupal/sites/all/modules/fckeditor/fckeditor/fckeditor/editor/filemanager/connectors/php/sites/default/files/image/test.JPG but the actual file is located in a different place, /drupal/htdocs/sites/default/files/fckeditorimage/test.JPG.

If I enter the exact URL of the file I can see the image. Why does FCKeditor save the inserted file to one location and then references a different location when displaying? I'd really appreciate the group's help on this, it's driving me crazy.

config.php file is attached.

Thanks,
Fred

CommentFileSizeAuthor
config.php_.txt8.86 KBfmfabila

Comments

Jorrit’s picture

Status: Active » Postponed (maintainer needs more info)

Do you still have the issue with the latest version (1.3-beta2). Lots of things regarding to file uploading have been changed since 1.2-1.

fmfabila’s picture

Thanks for replying Jorrit, I'm hesitant to install a beta version, there may be unknown problems there than in a stable production version where at least most issues are documented. I'm sure it's a relatively simple change to the config.php file that tell where files are written and referenced. I'm just knowledgeable enough about the module to make the changes.

Thanks,
Fred

Jorrit’s picture

When I look at your config.php, I see that you did not include the line specified by the readme:

In this file(s) you will need to enable the file browser by adding one
line that includes file with the special authentication function for
Drupal (filemanager.config.php). Add this code:

require_once "../../../../../filemanager.config.php";
(FCKeditor 2.5+)

fmfabila’s picture

Jorrit,
I have the code in line 78, and I've included the block below. It's still not working though.

// Modified:FMF:20080715
// Created code block to enable file browser
require_once "../../../../../filemanager.config.php";
$Config['UserFilesAbsolutePath'] = '/WebContent/dwi/platform/apps/drupal/htdocs/sites/default/files/fckeditor' ;

Jorrit’s picture

Well, I don't think your config is entirely correct. For instance, I see:

$Config['UserFilesAbsolutePath'] = '/WebContent/dwi/platform/apps/drupal/htdocs/sites/default/files/fckeditor' ;

and some lines below:

$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ;

Obviously, there should be a slash before image.

Please take a vanilla config.php and make the exact modification as requested by the README. Please report if it fails.

fmfabila’s picture

Status: Postponed (maintainer needs more info) » Fixed

Hey Jorrit,
I made some changes and the images are being displayed, the file URL reference is now the same as the actual location on the server. Here were the changes.

-->Changed
$Config['UserFilesAbsolutePath'] = '/WebContent/dwi/platform/apps/drupal/htdocs/sites/default/files/fckeditor' ;
-->Back To
$Config['UserFilesAbsolutePath'] = '' ;

-->Changed
$Config['UserFilesPath'] = '/WebContent/dwi/platform/apps/drupal/userfiles' ;
-->Back To
$Config['UserFilesPath'] = '/userfiles/' ;

I Also made changes to the directory location of linked files but your suggestion to reference the original file helped me track down the major issue problem.

Thanks for your help, I appreciate it.
-Fred

Anonymous’s picture

Status: Fixed » Closed (fixed)

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