Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 20

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 28.06.2004, 13:25   #1 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 5
acfstacey is on a distinguished road
RedCross FCK Editor Error?!?

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("&lt;", "<", $content);
	$content = str_replace("&gt;", ">", $content);
	$content = str_replace("&amp;", "&", $content);
	$content = str_replace("&nbsp;", " ", $content);
	$content = str_replace("&quot;", "\"", $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
__________________
Adam

"Two things in life are certain - death and taxes!"
acfstacey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Old 28.06.2004, 14:39   #2 (permalink)
ufo
Senior Mamber
 
ufo's Avatar
 
Join Date: May 2004
Location: Romania
Posts: 180
ufo is an unknown quantity at this point
Default Re: FCK Editor Error?!?

Did you check the template code? (the include/init editor switch)
Try to switch the template and if it works there is your problem. I had a similar problem with an old template.
Good luck.
ufo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old 28.06.2004, 14:53   #3 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 5
acfstacey is on a distinguished road
Default Re: FCK Editor Error?!?

Thanks ufo, I've had a look, but it all seems OK. My code for initialising the editor is:

Code:
<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>";
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>House of Batteries UK - Wholesale Batteries Supplier</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php
if ($my->id) {
	include ("editor/editor.php");
	initEditor();
}
?>
<?php include ("includes/metadata.php"); ?>
Does it look OK to you?

Regards
__________________
Adam

"Two things in life are certain - death and taxes!"
acfstacey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +2. The time now is 02:33.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.