A fetch returns empty...

Author Message

Lars Imsland

Tuesday 16 March 2004 12:34:05 pm

I have a template (copied from the forum package) starting with

{let child_list=fetch('content','list',hash( parent_node_id, $node.node_id,
limit, 20,
offset, $view_parameters.offset,
sort_by, array( array( attribute, false(), 158 ), array(published,false()))))
child_count=fetch('content','list_count',hash(parent_node_id,$node.node_id))}

This returns empty ($child_count=0). My question is: what can cause this fetch to return nothing, when I'm sure there is content under the node?

(The current node is of class "forum", where I have created a node of "Forum topic" inside. There are no debug error messages.)

Lars Imsland

Wednesday 17 March 2004 3:27:45 am

Since I created a new class, I of course had to grant anonymous users access to that class.

(I got the hint from http://www.ez.no/community/forum/setup_design/folder_showing_as_empty_in_user_template, strange it didn't work for him)

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

Main resources:

Total runtime0.8388 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.0147 589.0234152.6250
Module start 'layout' 0.01470.0049 741.648439.4453
Module start 'content' 0.01970.8177 781.0938423.9766
Module end 'content' 0.83740.0014 1,205.07038.1641
Script end 0.8388  1,213.2344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4487160.0002
Check MTime0.00150.1821160.0001
Mysql Total
Database connection0.00590.706710.0059
Mysqli_queries0.788894.0320520.0152
Looping result0.00050.0545500.0000
Template Total0.794594.720.3973
Template load0.00210.244920.0010
Template processing0.792494.467520.3962
Template load and register function0.00020.025410.0002
states
state_id_array0.00130.159710.0013
state_identifier_array0.00080.093520.0004
Override
Cache load0.00160.1961140.0001
Sytem overhead
Fetch class attribute can translate value0.00160.190610.0016
Fetch class attribute name0.00170.198420.0008
XML
Image XML parsing0.00010.015410.0001
class_abstraction
Instantiating content class attribute0.00000.000820.0000
General
dbfile0.00150.1800100.0002
String conversion0.00000.001140.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/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs