I have FCKeditor installed in twho sites on same installation on the other it works, in other it does not. Both use same instalaltion. I get apache error: File does not exist: /var/www/html/drupal6/fckeditor

I do not understand why it ttries to find fckeditor from root. On the source all references are sites/all/modules/fckeditor....

Can not find any related difference between the two installations.

Comments

wwalc’s picture

Did you perhaps change the patch to FCKeditor in the FCKeditor Global Profile?

artol’s picture

I had this untouched, but after modifying it I got this working.

Now when I want to add picture using picture tool while editing the article I see directories and file names like I should, but I do not see picture preview nor the attched pictures work. e.g. the link http://tekextra.tek.fi/?q=system/files/bluemarine_logo.jpg gives 'you do not have rights to see' or something similar error although I am admin and have all rights. I use IMCE and have file transport set us private. Why?

wwalc’s picture

There is a problem in the hook_file_download at this moment in the FCKeditor module (to be solved in the next few days - #347865: Fckeditor module breaking security of webform module) which may cause some problems when private file system is used, however I'm not sure is this really a problem with the FCKeditor module.
How about this: create an article with an image, disable FCKeditor module and check whether the attached picture works.
If not, then I believe it is a problem with IMCE configuration.

You can also also try the following solution: edit fckeditor.module and remove the fckeditor_file_download function. If you're using IMCE to upload files, then you don't really need it.

artol’s picture

Commenting fckeditor_file_download does not help. I have subsite under sites diretory. Can this be a problem. I have rewrite rule in .htaccess in files in drupal folder:
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /sites/%{HTTP_HOST}/files/$1 [L]

Does this handle if the path is /system/...?

wwalc’s picture

I guess it would be better to ask for help on the Drupal forum ragarding this issue. I did not have a similar set up in the past and unfortunately have no idea what's causing the problem. All I can suggest is to check drupal logs and server logs maybe there will be something that can point you to the solution.

wwalc’s picture

Status: Active » Closed (fixed)