I installed FCKeditor and followed the instructions in readme.txt
As soon as I activate the module I get this error:

warning: main() [function.main]: open_basedir restriction in effect. File(/fckeditor_php5.php) is not within the allowed path(s): (....../domain/httpdocs:/tmp) in ....../modules/fckeditor/fckeditor/fckeditor.php on line 69.

warning: main(fckeditor_php5.php) [function.main]: failed to open stream: Operation not permitted in ....../domain/httpdocs/modules/fckeditor/fckeditor/fckeditor.php on line 69.

warning: main() [function.include]: Failed opening 'fckeditor_php5.php' for inclusion (include_path='.:') in ...../domain/httpdocs/modules/fckeditor/fckeditor/fckeditor.php on line 69.

How do I fix this?

Comments

wwalc’s picture

Status: Active » Closed (fixed)

Looks strange. Your include_path looks ok (a dot should allow to include files from the same directory).
I guess that you have removed a part of the open_basedir in the error message. Just to be sure - is /path/to/drupal/modules/fckeditor/fckeditor/fckeditor_php5.php in a path that is allowed by open_basedir?
Anyway... this is not really not a problem with a module so closing this one.
My suggestion is to comment open_basedir setting (to disable the limit on the files that can be opened by PHP), try whether everything works and then enable open_basedir again with the right paths.

gggdrpl’s picture

Hi! I experienced the same problem.

FCKeditor module gives a series of warnings when trying to perform include functions.

It has to do with open_basedir and include_path values in some web server configurations.

The following line added to .htaccess file in the root directory of my Drupal installation solved the problem:

php_value include_path '.:/var/www/vhosts/domain.com/httpdocs'

The value after the colon is the root path of the domain for the web site.
Use the control panel of the host, use info.php or go to Status report in Drupal admin to get this value.

This tip was found at the bottom of this thread:

http://www.webmasterworld.com/php/3124868.htm

Hope this helps!