override problem,no data after refresh !

Author Message

Selmah Maxim

Saturday 13 November 2004 5:29:38 am

Hi ...

when I delete the files from folder var and make refresh for the page i get the node information, but when i refresh the page again I got :
" Unknown template variable 'node' in namespace '' "

is this override and cache bug ?!?

Lazaro Ferreira

Saturday 13 November 2004 6:46:10 am

Hi,

Which files under var are you deleting ?

You should only delete files under:

/var/cache or var/your-site-access/cache

After deleting your cache, you should compile your templates (for ezp3.4+) if template compiler is enabled, you can find more about compiling your templates here :

http://ez.no/ez_publish/documentation/development/scripting/supplied_scripts/template_compiler

Lazaro
http://www.mzbusiness.com

Selmah Maxim

Saturday 13 November 2004 9:59:41 pm

The same error ...

just when i delete the "Cache" files from "var" folder works fine,unless I get node error !

Selmah Maxim

Saturday 13 November 2004 11:06:47 pm

I don`t think this override problem or cache problem ,,,, I think this major bug in the last svn :(

{section show=ne($node.object.contentclass_id,16)}
	{include uri="design:categories_table.tpl"}
{section-else show=eq($node.object.contentclass_id,16)}	
	{include uri="design:category_listing.tpl"}
{/section}

1st time works fine, but when I make refresh I get same page as there is no $node !

I was overriding the categories_table.tpl with category_listing.tpl, and didn`t work, even now !

Selmah Maxim

Saturday 13 November 2004 11:33:07 pm

I found it ... but its shouldn`t be like this (as I think) ...

to speed up the site user shaoudl get the cached files, so in site.ini this var must be :
ViewCaching=enabled

but when its enabled I got this error, just 1st time can see the node, after refresh its ignored !

Lazaro Ferreira

Sunday 14 November 2004 4:14:01 am

Hi,

I didn´t understand why ?

{section show=ne($node.object.contentclass_id,16)}
	{include uri="design:categories_table.tpl"}
{section-else show=eq($node.object.contentclass_id,16)}	
	{include uri="design:category_listing.tpl"}
{/section}

instead use:

{*by the way you can test your $node here because the error said you are not referencing the $node correctly*}
{$node|attribute(show)}
{*if the code above don´t produce $node information listing, then you are not referencing it right look at yout template space names to reference the $node correctly *}
{section show=ne($node.object.contentclass_id,16)}
	{include uri="design:categories_table.tpl"}
{section-else}	
	{include uri="design:category_listing.tpl"}
{/section}

Lazaro
http://www.mzbusiness.com

Selmah Maxim

Sunday 14 November 2004 2:21:46 pm

its have more than 1 or 2 terms ...

not just class id 16, there is more than 6 term, this 2 terms was that start just !
its not my code problem!

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:24:44
Script start
Timing: Jan 18 2025 16:24:44
Module start 'layout'
Timing: Jan 18 2025 16:24:44
Module start 'content'
Timing: Jan 18 2025 16:24:45
Module end 'content'
Timing: Jan 18 2025 16:24:45
Script end

Main resources:

Total runtime0.8753 sec
Peak memory usage4,096.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.8047152.6406
Module start 'layout' 0.00510.0053 742.445339.4609
Module start 'content' 0.01030.8634 781.9063544.6875
Module end 'content' 0.87370.0015 1,326.593816.1406
Script end 0.8752  1,342.7344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4342160.0002
Check MTime0.00170.1897160.0001
Mysql Total
Database connection0.00060.068910.0006
Mysqli_queries0.815593.1736690.0118
Looping result0.00070.0822670.0000
Template Total0.844296.420.4221
Template load0.00260.294820.0013
Template processing0.841696.150920.4208
Template load and register function0.00020.023710.0002
states
state_id_array0.00080.088210.0008
state_identifier_array0.00190.213020.0009
Override
Cache load0.00220.2564370.0001
Sytem overhead
Fetch class attribute can translate value0.00050.052520.0002
Fetch class attribute name0.00150.170270.0002
XML
Image XML parsing0.00020.027520.0001
class_abstraction
Instantiating content class attribute0.00000.001470.0000
General
dbfile0.00070.0844100.0001
String conversion0.00000.001440.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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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/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: 29
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs