"Unknown template variable" ¿?

Author Message

Cristian G. L.

Monday 31 May 2004 7:34:19 am

Hi!
I have problems with the following code:

<h3>
	Archivo de noticias:
</h3>
<table cellspacing="1">
{let meses=array( Enero, Febrero, Marzo, Abril, Mayo, Junio, Julio, Agosto, Septiembre, Octubre, Noviembre, Diciembre ) }
{section name=mes loop=$meses}
{let arrayNoticias=fetch(content, list, hash(parent_node_id, 53,
					 sort_by, array( published, false() ),
					 attribute_filter, array( array( published, >=,
									 maketime(0,0,0,5,1,2004) ),
								  array( published, <,
									 maketime(0,0,0,6,1,2004) ) ) ) ) } 
	<tr id="filaCabecera">
		<td>MES: {$mes:item}</td>
	</tr>
	{section name=noticia loop=$arrayNoticias}
		{sequence name=parImpar loop=array("FilaImpar","FilaPar")}
		<tr id="{$parImpar:item}">
			<td>{node_view_gui view=line content_node=$noticia:item}</td>
		</tr>
		{sequence name=parImpar}	
	{/section}
	{/let}
	{/section}
{/let}
</table>

I get the same error repeated 12 times:

Unknown template variable 'arrayNoticias' in namespace ''

This fails in line 16 ("{section name=noticia loop=$arrayNoticias}").

What is wrong in the code? Are correctly the {let} tags?

Thanks in advance,

Cristian

Cristian G. L.

Monday 31 May 2004 8:31:17 am

Hi

I maked this changes:

{section name=noticia loop=$mes:arrayNoticias}
{node_view_gui view=line content_node=$mes:noticia:item}

Now i have no errors, but it don't shows the feched nodes (the fetch function is ok, i tested it separatly)

I think it is a namespace related problem, but i can't solve it.

Bye

Cristian

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 16:03:41
Script start
Timing: Jan 18 2025 16:03:41
Module start 'layout'
Timing: Jan 18 2025 16:03:41
Module start 'content'
Timing: Jan 18 2025 16:03:42
Module end 'content'
Timing: Jan 18 2025 16:03:42
Script end

Main resources:

Total runtime0.6791 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.0043 587.9141152.6250
Module start 'layout' 0.00430.0020 740.539139.4453
Module start 'content' 0.00630.6712 779.9844428.5469
Module end 'content' 0.67760.0015 1,208.53138.1641
Script end 0.6791  1,216.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4831160.0002
Check MTime0.00140.2062160.0001
Mysql Total
Database connection0.00060.093610.0006
Mysqli_queries0.638894.0703520.0123
Looping result0.00050.0761500.0000
Template Total0.653596.220.3268
Template load0.00210.314620.0011
Template processing0.651495.917320.3257
Template load and register function0.00030.038310.0003
states
state_id_array0.00090.133310.0009
state_identifier_array0.00120.178920.0006
Override
Cache load0.00170.2569210.0001
Sytem overhead
Fetch class attribute can translate value0.00050.075010.0005
Fetch class attribute name0.00100.154320.0005
XML
Image XML parsing0.00010.015510.0001
class_abstraction
Instantiating content class attribute0.00000.000920.0000
General
dbfile0.00050.0803100.0001
String conversion0.00000.001040.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
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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/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.0002 secs