PDA

View Full Version : FCKEditor Instantiate Problem


Jim7283
06-02-2008, 09:34 AM
Hi All,

I'm pretty sure this is an issue with my host, but thought I would post anyway for some feedback...

I'm trying to implement FCKEditor into the admin area of a client site, and it works perfectly fine on localhost, but when moved to the live server (DreamHost) I am receiving the following error upon trying to instantiate an FCKEditor object:

"Not Found
The requested URL /fckeditor/editor/fckeditor.html was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

The strange thing is that the page it claims isn't being found - 'fckeditor.html' can be accessed directly via the path provided, so I know the file is there and working properly. Any ideas what is going on?

Just to check, I discarded my .htaccess file and CHMOD the entire FCKEditor directory tree to 777 but the problem persists. I've sent a note off to the support team of the hosting company, but perhaps there is something I am missing? Here is the PHP:


<?
// FCKEDITOR //////////////////////////////////////
include('fckeditor/fckeditor.php'); ////////
///////////////////////////////////////////////////
?>
<form action="<?=$_SERVER['PHP_SELF']?>" method="post" name="edit">
<input type="hidden" name="id" value="<?=$id?>" />
<input type="hidden" name="title" value="<?=$row->title?>" />
<ul>
<li><label>Title:</label><span><?=$row->title?></span></li>
<li><label>Keywords:</label><input type="text" name="keywords" size="55" value="<?=$row->keywords?>" /></li>
<li><label>Description:</label><textarea name="description" style="width:355px; height:125px;"><?=$row->description?></textarea></li>
<li><label>Content:</label>
<? // Initiate FCK Editor
$oFCKeditor = new FCKeditor('fckcontent');
$oFCKeditor->Value = $row->content;
$oFCKeditor->Height = 300 ;
$oFCKeditor->ToolbarSet = 'Admin';
$oFCKeditor->Create();
?>
</li>
</ul>
<input type="submit" name="edit" value="Update Page" class="button" />
</form>

Jim7283
06-03-2008, 01:31 PM
MODS - feel free to save me some embarrassment and remove this thread - it was a simple PATH issue - no errors in the script/host...

yikes

Paul
06-03-2008, 02:32 PM
Nothing to be embarrassed about, I know I've done this on more than one occasion. Glad you sorted it out. :)