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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:03:15
Script start
Timing: Jan 18 2025 19:03:15
Module start 'layout'
Timing: Jan 18 2025 19:03:15
Module start 'content'
Timing: Jan 18 2025 19:03:16
Module end 'content'
Timing: Jan 18 2025 19:03:16
Script end

Main resources:

Total runtime0.8305 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0087 589.2734152.6563
Module start 'layout' 0.00870.0034 741.929739.5078
Module start 'content' 0.01210.8164 781.4375487.3281
Module end 'content' 0.82850.0020 1,268.765612.0938
Script end 0.8305  1,280.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3955160.0002
Check MTime0.00130.1594160.0001
Mysql Total
Database connection0.00120.138810.0012
Mysqli_queries0.770192.7241600.0128
Looping result0.00070.0855580.0000
Template Total0.781894.120.3909
Template load0.00220.263220.0011
Template processing0.779693.872120.3898
Template load and register function0.00030.030510.0003
states
state_id_array0.00180.213410.0018
state_identifier_array0.00090.111620.0005
Override
Cache load0.00190.2254430.0000
Sytem overhead
Fetch class attribute can translate value0.00050.065520.0003
Fetch class attribute name0.00150.185740.0004
XML
Image XML parsing0.00020.028320.0001
class_abstraction
Instantiating content class attribute0.00010.007040.0000
General
dbfile0.00080.0955100.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs