Online editor "undefined" error

Author Message

Trevor Clowry

Wednesday 29 April 2009 4:54:36 am

I just upgraded from ezpublish 3.4 to 3.10.1 and the upgrades seem to be working mostly fine. I cannot upgrade the website any further as the server it is on is running PHP4.

I am have a problem with the online editor when i try to insert a link. If i add text to the OE, highlight it and click the add link button and add the details in the pop up window - the text of the link is always "undefined". This happens no matter how i try to add a link.
The only way that i can do it is manually add the code.

I have searched the forums without finding any reference and have done a bit of debugging and research and it seems that the problem lies here.

In the file /layout/set/dialog/ezdhtml/insertlink/

    // display other attributes
    if ( customAttributes != -1 )
    {
        var attributeArray = customAttributes.split("attribute_separation");
        var attributes = new Array();
        for ( var i=0;i<attributeArray.length;i++ )
        {

Firebug is telling me that the customAttributes has no values

It also shows this:

displayAttributes("link", undefined)    insertlink (line 56)
Init()                                               insertlink (line 300)
onload(load)

So i presume the displayAttribute function is being passed "undefined" into it.
I have tried tirelessly to try and figure out why and how but can't seem to find out.

I don't have the option of upgrading to version 4, so I am in a bit unsure what to do next.
If anyone could help i would be extremely greatful.I could also provide access to the site if someone would like to test it out.

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 22:35:49
Script start
Timing: Jan 18 2025 22:35:49
Module start 'layout'
Timing: Jan 18 2025 22:35:49
Module start 'content'
Timing: Jan 18 2025 22:35:51
Module end 'content'
Timing: Jan 18 2025 22:35:51
Script end

Main resources:

Total runtime1.4849 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 589.0469152.6250
Module start 'layout' 0.00760.0037 741.671939.4453
Module start 'content' 0.01131.4722 781.1172411.0391
Module end 'content' 1.48340.0015 1,192.15638.1641
Script end 1.4849  1,200.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2225160.0002
Check MTime0.00130.0906160.0001
Mysql Total
Database connection0.00100.069510.0010
Mysqli_queries1.442797.1528460.0314
Looping result0.00050.0354440.0000
Template Total1.440997.020.7204
Template load0.00200.137420.0010
Template processing1.438896.894320.7194
Template load and register function0.00020.011010.0002
states
state_id_array0.00100.065710.0010
state_identifier_array0.00300.199620.0015
Override
Cache load0.00160.1102160.0001
Sytem overhead
Fetch class attribute can translate value0.00060.042310.0006
Fetch class attribute name0.00050.030810.0005
XML
Image XML parsing0.00010.009110.0001
class_abstraction
Instantiating content class attribute0.00000.000210.0000
General
dbfile0.00070.0443100.0001
String conversion0.00000.000740.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs