Forums / Setup & design / FCK editor : 'add object' button to add image in an article

FCK editor : 'add object' button to add image in an article

Author Message

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?

Lydie Soler

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 Ez Publish?

Lydie Soler

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 ezpublish in a subdirectroy not in the 'DocRoot'

So maybe there the same kind of problem... But I don't know where/what to change

eZ debug

Timing: Jan 19 2025 03:27:54
Script start
Timing: Jan 19 2025 03:27:54
Module start 'content'
Timing: Jan 19 2025 03:27:54
Module end 'content'
Timing: Jan 19 2025 03:27:54
Script end

Main resources:

Total runtime0.0416 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0089 589.1953180.8125
Module start 'content' 0.00890.0187 770.007893.9922
Module end 'content' 0.02760.0139 864.000070.7031
Script end 0.0415  934.7031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00296.9126120.0002
Check MTime0.00143.4841120.0001
Mysql Total
Database connection0.00235.580810.0023
Mysqli_queries0.00379.009940.0009
Looping result0.00000.039020.0000
Template Total0.013331.810.0133
Template load0.00143.259410.0014
Template processing0.011928.572910.0119
Override
Cache load0.00102.417710.0010
General
dbfile0.00235.6083100.0002
String conversion0.00000.018930.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs