Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted (edited)

Hello,

 

Already spent a whole day installing FCKeditor. I always get the following when I go to a edit a product:

 

Fatal error: Cannot instantiate non-existent class: fckeditor in /www/htdocs/busshop/admin/includes/functions/html_output.php on line 261

 

Don't know what I am doing wrong?

 

Otherwise if I use the

 

require("../../FCKeditor/fckeditor.php"); what is the right location, I become this:

 

Warning: main() [function.main]: open_basedir restriction in effect. File(../../fckeditor.php) is not within the allowed path(s): (/www/htdocs/busshop/) in /www/htdocs/busshop/admin/includes/functions/html_output.php on line 14

 

Warning: main(../../fckeditor.php) [function.main]: failed to create stream: Operation not permitted in /www/htdocs/busshop/admin/includes/functions/html_output.php on line 14

 

Fatal error: main() [function.main]: Failed opening required '../../fckeditor.php' (include_path='.:/usr/share/php:..') in /www/htdocs/busshop/admin/includes/functions/html_output.php on line 14

 

 

so I changed it to " Require("http://bus-shopping.de/admin/FCKeditor/fckeditor.php) " and become the first error I mentioned.

 

I would be grateful if somebody can help me!

Edited by b.payne
Posted

Found the answer by myself!

 

Problem was the path in html_output.php . It works with:

 

require("FCKeditor/fckeditor.php"); without ../../

 

and

 

// Output a form textarea field w/ fckeditor

function tep_draw_fckeditor($name, $width, $height, $text) {

 

$oFCKeditor = new FCKeditor($name);

$oFCKeditor -> Width = $width;

$oFCKeditor -> Height = $height;

$oFCKeditor -> BasePath = 'FCKeditor/'; - nothing else

$oFCKeditor -> Value = $text;

 

$field = $oFCKeditor->Create($name);

 

return $field;

}

 

Took me a whole day - damned!

  • 5 months later...
Posted
Found the answer by myself!

 

Problem was the path in html_output.php . It works with:

 

require("FCKeditor/fckeditor.php"); without ../../

 

and

 

Thanks for your post it helped me out with another contribution but the same FCKeditor error. I came to your post via a search engine.

 

With my contribution the author had missed the "require(FCKeditor/fckeditor.php"); call all together. It took me less than hour an hour to track down a similar problem using your post. Its a good thing you answered your own post, thanks.

  • 7 months later...
Posted

hello all

 

what i can do if i want to include it in the add file ?

 

i say

 

<?
require("FCKeditor/fckeditor.php");

function fckeditor1($name,$text) {

$oFCKeditor = new FCKeditor($name);
$oFCKeditor -> Width = $width;
$oFCKeditor -> Height = $height;
$oFCKeditor -> BasePath = 'FCKeditor/';
$oFCKeditor -> Value = $text;

$field = $oFCKeditor->Create($name);

return $field;

}

fckeditor1(aaa,aaaaaaaaaa)
?>

 

but the error msg still appear

 

Fatal error: Cannot instantiate non-existent class: fckeditor in /home2/soon00/public_html/new_s/add01.php on line 25

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...