I am using for the first time FCK editor and I could implement it on my local server MAMP on MAC.
Now I transfered my web site and fckeditor does not work on the web server.
I got that error message
Warning: main() [function.main]: open_basedir restriction in effect. File(/fckeditor_php5.php) is not within the allowed path(s): (/var/www/vhosts/my-web-site.ch/httpdocs:/tmp) in /var/www/vhosts/my-web-site.ch/httpdocs/fckeditor/fckeditor.php on line 31
Warning: main(fckeditor_php5.php) [function.main]: failed to open stream: Operation not permitted in /var/www/vhosts/my-web-site.ch/httpdocs/fckeditor/fckeditor.php on line 31
Warning: main() [function.include]: Failed opening 'fckeditor_php5.php' for inclusion (include_path='.:.:') in /var/www/vhosts/my-web-site.ch/httpdocs/fckeditor/fckeditor.php on line 31
Fatal error: Class 'FCKeditor' not found in /var/www/vhosts/que-faire-ce-week-end.ch/httpdocs/include/new_manifestation.php on line 303
I pasted the fckedito folder at the root level and I add that code in my php page which is at the root level as well:
<?php include_once("fckeditor/fckeditor.php") ; ?> <?php $oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->BasePath = 'fckeditor/' ; $oFCKeditor->Value = "add coment" ; $oFCKeditor->Create() ; ?>
Do you have a ideea it generates a such error message oly on remote web server?