Warning : Variable 'nodeContent' is already defined.

Author Message

H-Works Agency

Sunday 27 November 2005 4:22:02 pm

I have this warning but its not mentionned anywhere on the site.

What is this ? What do i need to fix ?

Debian/EZP7.2/Apache2/Php4

Thanx
Martin

EZP is Great

Nathan Kelly

Sunday 27 November 2005 7:33:46 pm

Hi Martin, where does this error occur? If it is occurring in a template you have edited/created it may help if we can see your code.

I'd say you may be trying to define a variable that you have already defined in previous code, or you may not have un-defined a variable with {undef $myvariable} where you may have needed too?

Cheers!

Pardon me while I burst into flames...

H-Works Agency

Tuesday 29 November 2005 7:49:04 am

Hi Nathan

This Warning occurs on the admin interface :

Warning: eZTemplate:def  	Nov 29 2005 16:43:15

Variable 'nodeContent' is already defined.

This is the only place where a '$nodeContent' var is present :

design/admin/templates/children_list.tpl:       {def $nodeContent=fetch( 'content', 'object', hash( 'object_id', $Nodes.item.contentobject_id ) )}

But i never modified this template so how this warning is happening ?

There is another thing but this time its an 'error' happening on the site part :

Error: eZTemplate:elementValue  	Nov 29 2005 16:42:39

Missing array data structure, got NULL

Martin

EZP is Great

Nathan Kelly

Tuesday 29 November 2005 6:36:21 pm

Hi Martin, this may be a 3.7.2 issue, unfortunately I'm using 3.6.0 so I don't know what has explicitly changed between the versions (I assume some templates have been updated). I've never seen these errors on 3.6.0, so I can't help, sorry.

Maybe someone else will have an idea?

Cheers!

Pardon me while I burst into flames...

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 11:56:39
Script start
Timing: Jan 19 2025 11:56:39
Module start 'layout'
Timing: Jan 19 2025 11:56:39
Module start 'content'
Timing: Jan 19 2025 11:56:41
Module end 'content'
Timing: Jan 19 2025 11:56:41
Script end

Main resources:

Total runtime1.1144 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.0057 589.2891152.6406
Module start 'layout' 0.00570.0032 741.929739.4922
Module start 'content' 0.00891.1041 781.4219556.6172
Module end 'content' 1.11300.0014 1,338.039112.1250
Script end 1.1144  1,350.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3133160.0002
Check MTime0.00140.1300160.0001
Mysql Total
Database connection0.00070.060710.0007
Mysqli_queries1.051294.3263600.0175
Looping result0.00060.0530580.0000
Template Total1.083997.320.5420
Template load0.00210.185420.0010
Template processing1.081897.074620.5409
Template load and register function0.00010.010310.0001
states
state_id_array0.00080.073810.0008
state_identifier_array0.00110.102020.0006
Override
Cache load0.00180.1575300.0001
Sytem overhead
Fetch class attribute can translate value0.00040.036720.0002
Fetch class attribute name0.00180.160960.0003
XML
Image XML parsing0.00410.366420.0020
class_abstraction
Instantiating content class attribute0.00000.002180.0000
General
dbfile0.00500.4507230.0002
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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/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: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0003 secs