Forums / Setup & design / FCK editor : 'add object' button to add image in an article
Lydie Soler
Thursday 11 August 2005 2:24:00 am
Hi,
I have noticed that if I use the fck editor extension there is an 404 error when I try to add image to an article using the 'add object' button.
I have this error:
The requested URL /metarisk2/content/browse was not found on this server.Apache/2.0.52 (Red Hat) Server at metarisk2 Port 80
indeed it tries the url:http://metarisk2/metarisk2/content/browse
instead of : http://metarisk2/metarisk2/index...._unite_metarisk_admin/content/browse
If I remove the extension the 'add object' button works fine.
an idea to correct this problem?
Thursday 11 August 2005 2:56:44 am
Hem one more question...when I try to use the FCK editor insert image button it seems that I didn"t give it the right to access to the server.
What do I have to change?Is there a way to cutomize the folder in which the uploaded file will be added?
thanks for your help
Imppa Imppa
Thursday 11 August 2005 11:47:52 am
How did you install fckeditor to Exponential?
Friday 12 August 2005 1:17:24 am
Here is what I have done: (I use Ez 3.6.1)
- I have downloaded the tar.gz file Geraint gives us. THen unzipped it to the extension directory. So I have the following directories:
-extension -fckeditor -autoloads -design -FCKeditor -settings - Then I activated the extension by checking it in the setup/extension interface using the admin interface. - Then I added the lines in the site.ini.append [ExtensionSettings]ActiveExtensions[]=fckeditor
and
[TemplateSettings]ExtensionAutoloadPath[]=fckeditor
What may be important to say is that on Geraint's advise I changed in the fckeditor.php from
$oFCKeditor->BasePath = '/extension/fckeditor/FCKeditor/' ;
to
$oFCKeditor = new FCKeditor("fck".$id) ; include_once( 'lib/ezutils/classes/ezextension.php' ); $extensionDirectory = eZExtension::baseDirectory(); include_once( 'lib/ezutils/classes/ezsys.php'); eZSys::init( eZINI::instance() ); $oFCKeditor->BasePath = eZSys::wwwDir() . "/" . $extensionDirectory . "/fckeditor/FCKeditor/" ;
I did this because I have installed my Exponential in a subdirectroy not in the 'DocRoot'
So maybe there the same kind of problem... But I don't know where/what to change