Hi everyone,
I've looked everywhere for a solution to my problem, but I just can't seem to find the answer. I have installed the latest version of FCK Editor fro MOS 4.5 and placed it in the editor file, but when I use the editor it comes up with the following error:
Code:
Warning: initeditor(fckeditor/fckeditor.php): failed to open stream: No such file or directory in /home/h/o/hob/public_html/editor/editor.fckeditor.php on line 18
Warning: initeditor(fckeditor/fckeditor.php): failed to open stream: No such file or directory in /home/h/o/hob/public_html/editor/editor.fckeditor.php on line 18
Warning: initeditor(fckeditor/fckeditor.php): failed to open stream: No such file or directory in /home/h/o/hob/public_html/editor/editor.fckeditor.php on line 18
Warning: initeditor(): Failed opening 'fckeditor/fckeditor.php' for inclusion (include_path='') in /home/h/o/hob/public_html/editor/editor.fckeditor.php on line 18
In the editor/editor.fckeditor.php file I then changed the include on line 18 from:
Code:
<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
function initEditor() {
global $mosConfig_live_site;
####Line 18####
include("fckeditor/fckeditor.php");
#############
} to:
Code:
<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
function initEditor() {
global $mosConfig_live_site;
####Line 18####
include("$mosConfig_live_site/editor/fckeditor/fckeditor.php");
#############
} I then get this message in the textarea in the admin page:
Code:
Fatal error: Cannot instantiate non-existent class: fckeditor in /home/h/o/hob/public_html/editor/editor.fckeditor.php on line 31
Line 31 of the code in editor/editor.fckeditor.php looks as follows:
Code:
<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
function initEditor() {
global $mosConfig_live_site;
include("$mosConfig_live_site/editor/fckeditor/fckeditor.php");
}
function editorArea( $name, $content, $hiddenField, $width, $height, $col, $row ) {
global $mosConfig_live_site;
$content = str_replace("<", "<", $content);
$content = str_replace(">", ">", $content);
$content = str_replace("&", "&", $content);
$content = str_replace(" ", " ", $content);
$content = str_replace(""", "\"", $content);
// include the config file and editor class:
####Line 31###################################
$name = new FCKeditor ;
############################################
$name->BasePath = ($mosConfig_live_site.'/editor/fckeditor/') ;
$name->Value = $content ;
$name->Width = 660 ;
$name->Height = $height ;
$name->Rows = $rows ;
$name->Cols = $cols ;
$name->CanUpload = false ;
$name->CanBrowse = false ;
$name->CreateFCKeditor( $hiddenField) ;
}
function getEditorContents( $editorArea, $hiddenField ) {
}
?> Any help would be greatly appreciated.
Thanks
Adam