Ezoe 5 doesnt store xml block content on frontpage object

Author Message

Luis Micunco

Wednesday 15 July 2009 1:23:00 am

Hi.
I just created a new "XML Block" attribute for the default "frontpage" content class.
The problem is that it doesnt store any content when publish a new object.

I get a javascript error when publishing the node:

ez.array.forEach is not a function
eZOeCleanUpEmbedTags("ContentObjectAttribute_data_text_1174", "<p>Lorem ipsum dolor sit amet.<br></p>", body#tinymce.mceContentBody)esl-ES (línea 851)
_init()("save_callback")tiny_mce.js (línea 1)
_init()()tiny_mce.js (línea 1)
_init()()tiny_mce.js (línea 1)
_init()(Object save=true)tiny_mce.js (línea 1)
_init()(Object save=true)tiny_mce.js (línea 1)
_init()()tiny_mce.js (línea 1)
_init()()tiny_mce.js (línea 1)
u()tiny_mce.js (línea 1)
_init()()

ez.array.forEach( body.getElementsByTagName('div'), function( node ){

After submit, the content is not stored.
It happens only in "frontpage" content class objects. Everything works fine on Folders, Articles and so on.

If "disabled editor" works fine too in "frontpage" content class objects and the xml content is stored.

Im using:
Ezpublish 4.1.2
Ezflow package default installed Ezoe 5.0.2

I hope someone reply.
Thanks everyone.

André R.

Wednesday 15 July 2009 1:49:19 am

Its because flow uses a very old version of 'ez_core.js', I thought it was replaced entirely with yui by now but seems to still be used somewhere.

Patch:

Index: ezoe/design/standard/templates/content/datatype/edit/ezxmltext_ezoe.tpl
===================================================================
--- ezoe/design/standard/templates/content/datatype/edit/ezxmltext_ezoe.tpl	(revision 22)
+++ ezoe/design/standard/templates/content/datatype/edit/ezxmltext_ezoe.tpl	(working copy)
@@ -59,7 +59,7 @@
     <script type="text/javascript">
     <!--
     
-    if ( window.ez === undefined ) document.write('<script type="text/javascript" src={"javascript/ezoe/ez_core.js"|ezdesign}><\/script>');
+    if ( window.ez === undefined || ez.version < 0.95 ) document.write('<script type="text/javascript" src={"javascript/ezoe/ez_core.js"|ezdesign}><\/script>');
 
     var eZOeAttributeSettings, eZOeGlobalSettings = {ldelim}
         mode : "none",

Alternatively download "design/standard/templates/content/datatype/edit/ezxmltext_ezoe.tpl" from svn* in 20-30 minutes, the fix will be there by then.

* http://svn.projects.ez.no/ezoe/stable/5.0/ezoe/

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Luis Micunco

Wednesday 15 July 2009 2:09:43 am

Thanks a lot André R. it works fine now.

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 31 2025 03:25:32
Script start
Timing: Jan 31 2025 03:25:32
Module start 'layout'
Timing: Jan 31 2025 03:25:32
Module start 'content'
Timing: Jan 31 2025 03:25:32
Module end 'content'
Timing: Jan 31 2025 03:25:32
Script end

Main resources:

Total runtime0.0298 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 588.3906151.2422
Module start 'layout' 0.00720.0052 739.6328220.7500
Module start 'content' 0.01240.0160 960.38281,001.9922
Module end 'content' 0.02840.0013 1,962.375033.9922
Script end 0.0298  1,996.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00268.8027140.0002
Check MTime0.00113.7084140.0001
Mysql Total
Database connection0.00072.513610.0007
Mysqli_queries0.005618.716230.0019
Looping result0.00000.047210.0000
Template Total0.00103.310.0010
Template load0.00082.578410.0008
Template processing0.00020.714610.0002
Override
Cache load0.00051.621310.0005
General
dbfile0.00279.053280.0003
String conversion0.00000.029640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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