Closed (fixed)
Project:
FCKeditor - WYSIWYG HTML editor
Version:
5.x-2.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Apr 2008 at 15:24 UTC
Updated:
26 Dec 2008 at 20:51 UTC
In fckeditor.php(from fckeditor distribution) included file via next line:
include_once( 'fckeditor_phpX.php' )
But for correct work path to this file must be in include_path.
Else we have error on some enviroment(workdir set to server root) like "open_basedir restriction in effect... cannot include /fckeditor_phpX.php...)
Solution:
In fckeditor_is_compatible_client() temporary change include path, replace next line:
include $fckeditor_main_file;
To:
$include_path = get_include_path();
set_include_path(drupal_get_path('module', 'fckeditor') .'/fckeditor/' . PATH_SEPARATOR . $include_path);
include $fckeditor_main_file;
set_include_path($include_path);
Comments
Comment #1
wwalc commentedActually it should be enough to have dot "." in the include path.
Comment #2
Jorrit commentedComment #3
Arkar commentedThe code in description solves the problem for me and I am using 6.x.2.0-alpha 3
Comment #4
wwalc commented