Different fetch results for non logged in users

Author Message

Brendan Pike

Friday 04 March 2005 12:56:52 am

I'm using a simple fetch over a user folder to count the users, as below:

let membercount=fetch( 'content',
                  'tree_count',
                  hash( 'parent_node_id', 115,
                  'class_filter_type', 'include',
                  'class_filter_array', array( 'user' ) ) )

Logged in users see the correct number, anonymous users see zero, why is this?

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Eivind Marienborg

Friday 04 March 2005 1:01:16 am

Check your permissions. Perhaps anonymous users aren't allowed to see the user class.

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 31 2025 01:33:13
Script start
Timing: Jan 31 2025 01:33:13
Module start 'layout'
Timing: Jan 31 2025 01:33:13
Module start 'content'
Timing: Jan 31 2025 01:33:13
Module end 'content'
Timing: Jan 31 2025 01:33:13
Script end

Main resources:

Total runtime0.0205 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.2578151.2266
Module start 'layout' 0.00540.0032 739.4844220.7188
Module start 'content' 0.00860.0105 960.2031997.8359
Module end 'content' 0.01910.0014 1,958.039129.9922
Script end 0.0205  1,988.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002411.7629140.0002
Check MTime0.00105.0157140.0001
Mysql Total
Database connection0.00094.435810.0009
Mysqli_queries0.002411.853630.0008
Looping result0.00000.053510.0000
Template Total0.00094.410.0009
Template load0.00073.607210.0007
Template processing0.00020.819310.0002
Override
Cache load0.00052.388110.0005
General
dbfile0.00021.043680.0000
String conversion0.00000.039540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs