b.payne Posted March 12, 2006 Posted March 12, 2006 (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 March 12, 2006 by b.payne Quote
b.payne Posted March 12, 2006 Author Posted March 12, 2006 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! Quote
Guest Posted September 12, 2006 Posted September 12, 2006 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. Quote
web_developer01 Posted April 20, 2007 Posted April 20, 2007 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 Quote
Recommended Posts
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.