Unknown template variable 'node' in namespace ''

Author Message

Claus Jensen

Tuesday 27 January 2004 12:28:45 am

Hello,
I get this:
"Error: eZTemplate @ design/panda/templates/page_mainarea.tpl:8[0]
Jan 26 2004 16:42:00

Unknown template variable 'node' in namespace ''
Error: eZTemplate @ design/panda/templates/page_mainarea.tpl:8[0]
Jan 26 2004 16:42:00"
when I have added some template code in page_mainarea.tpl. Isn't it possible to use other variables and the $node variable in this template?
Added:
Also think this goes for pagelayout.tpl. I think it very strange because it just another template, is it not?

regards,
claÜs

James Packham

Tuesday 27 January 2004 8:16:17 am

Is this while you're editing a new object by any chance? I've found that $node is unaccessible in all templates whilst you're doing this. It should be available at other times though.

Regards,

~James~

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 15:51:12
Script start
Timing: Jan 18 2025 15:51:12
Module start 'layout'
Timing: Jan 18 2025 15:51:12
Module start 'content'
Timing: Jan 18 2025 15:51:13
Module end 'content'
Timing: Jan 18 2025 15:51:13
Script end

Main resources:

Total runtime0.7862 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.4766152.6406
Module start 'layout' 0.00530.0023 742.117239.4766
Module start 'content' 0.00750.7772 781.5938494.1250
Module end 'content' 0.78480.0014 1,275.71888.1250
Script end 0.7862  1,283.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4011160.0002
Check MTime0.00130.1668160.0001
Mysql Total
Database connection0.00080.106410.0008
Mysqli_queries0.743894.6015540.0138
Looping result0.00050.0606520.0000
Template Total0.758396.420.3791
Template load0.00220.274720.0011
Template processing0.756196.172120.3781
Template load and register function0.00020.024010.0002
states
state_id_array0.00130.170710.0013
state_identifier_array0.00120.157120.0006
Override
Cache load0.00170.2204200.0001
Sytem overhead
Fetch class attribute can translate value0.00070.086620.0003
Fetch class attribute name0.00160.198830.0005
XML
Image XML parsing0.00060.073520.0003
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00150.1921160.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs