Wierd behaviour, diff between debug or not

Author Message

André R.

Monday 20 March 2006 9:25:18 am

While trying to output Xml_Block as a javascript value I found this issue:

code:

$image.data_map.caption.content.input.input_xml|nl2br()|trim()

Output 1 (How I need it):

Sentance 1..<br />Sentance 2..<br /><br />

Output 2:

Sentance 1..<br />
Sentance 2..<br /><br />

Same server, same ez install, just differnet site access.
Output 1 is from my dev siteaccess with most debug settings turned on and cache turned off.
I have cleared cache multiple times now, both in admin interface and by deleting cache folders.

ez: 3.7.4
php: 4.4.2

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

André R.

Tuesday 21 March 2006 1:38:58 am

This problem dissapeared when i updated from svn("3.7.5") yesterday.
and removing |trim() as |nl2br() does the trick.

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

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 19 2025 01:02:56
Script start
Timing: Jan 19 2025 01:02:56
Module start 'layout'
Timing: Jan 19 2025 01:02:56
Module start 'content'
Timing: Jan 19 2025 01:02:57
Module end 'content'
Timing: Jan 19 2025 01:02:57
Script end

Main resources:

Total runtime0.9406 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 589.2813152.6406
Module start 'layout' 0.00580.0050 741.921939.4766
Module start 'content' 0.01080.9283 781.3984495.8125
Module end 'content' 0.93910.0015 1,277.210912.1250
Script end 0.9406  1,289.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3454160.0002
Check MTime0.00140.1450160.0001
Mysql Total
Database connection0.00120.126010.0012
Mysqli_queries0.884394.0150520.0170
Looping result0.00060.0593500.0000
Template Total0.895795.220.4479
Template load0.00190.199320.0009
Template processing0.893895.026020.4469
Template load and register function0.00010.009610.0001
states
state_id_array0.00140.146110.0014
state_identifier_array0.00090.091920.0004
Override
Cache load0.00150.1617200.0001
Sytem overhead
Fetch class attribute can translate value0.00060.066210.0006
Fetch class attribute name0.00100.110830.0003
XML
Image XML parsing0.00050.048610.0005
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00100.1024170.0001
String conversion0.00000.001340.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs