Hi,
I have a problem to install FCKeditor on my drupal site.

I already did it on an another site and it works.

I have copy the fck module in the site/all/modules directory and the fck itself in the site/all/modules/fckeditor/fckeditor directory (I did it like it is described in the video "Install WYSIWYG in Drupal in 7 minutes". Then when I active the module in the administration of drupal, I have a white page with only this message :

Fatal error: Cannot instantiate non-existent class: fckeditor in /homepages/5/d244818681/htdocs/sites/all/modules/fckeditor/fckeditor.module on line 1724

I don't understand because the file fckeditor.module file is in the site/all/modules/fckeditor directory.

For information : I use the version 5.7 of drupal and the version "5.x-2.1" for the fck module and the latest version of fck itself (2.6).

Thank for your help and sorry if I made some errors of spelling (I am french...)

Cheers,
Arno

Comments

wwalc’s picture

You shopuld have the following file on your server:
/homepages/5/d244818681/htdocs/sites/all/modules/fckeditor/fckeditor/fckeditor.php
If you can't find it, it means that you unpacked FCKeditor (the editor) into wrong directory.

Make sure that you don't have it one directory deeper for example:
/homepages/5/d244818681/htdocs/sites/all/modules/fckeditor/fckeditor/fckeditor/fckeditor.php

Here's the correct directory structure:
http://drupal.fckeditor.net/troubleshooting#4

wwalc’s picture

Actually there is another thing that could cause this: a dot (".") must be in include_path, it means "the current directory". Alternatively, open fckeditor.php and replace

if ( !function_exists('version_compare') || version_compare( phpversion(), '5', '<' ) )
	include_once( 'fckeditor_php4.php' ) ;
else
	include_once( 'fckeditor_php5.php' ) ;

with

if ( !function_exists('version_compare') || version_compare( phpversion(), '5', '<' ) )
	include_once( './fckeditor_php4.php' ) ;
else
	include_once( './fckeditor_php5.php' ) ;
edented’s picture

Version: 5.x-2.1 » 6.x-1.2-1

I'm new to this so forgive me...
I found navigating directories with the same name very confusing.

wwalc’s picture

Priority: Critical » Normal
Status: Active » Fixed

There are no further questions in this ticket, so I'm closing it, feel free to reopen this ticket if you have any more questions regarding this issue.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

Alexander Ufimtsev’s picture

thank you, wwalc! this solved the problem for me. is code in #2 going into stable fckeditor?