problem in eztemplatenodetool.php?

Author Message

Terry Grossman

Sunday 25 July 2004 4:51:13 pm

Hey folks,

I'm using the user counts described in
http://ez.no/community/blog/session_user_relation

in order to generate the number of people currently on-line, using the following code

<td align=left width="50%"> 
  {sum(fetch( user, anonymous_count ), fetch( user, logged_in_count))} people online
 </td>

This seems to be working, but I noticed I'm getting debug messages now:

Module end 'content'
Warning: PHP Jul 25 2004 19:42:33
Undefined offset: 0 in /home/ftkfztae/public_html/content/lib/eztemplate/classes/eztemplatenodetool.php on line 300
Warning: PHP Jul 25 2004 19:42:33
Undefined offset: 0 in /home/ftkfztae/public_html/content/lib/eztemplate/classes/eztemplatenodetool.php on line 290
Warning: PHP Jul 25 2004 19:42:33
Undefined offset: 0 in /home/ftkfztae/public_html/content/lib/eztemplate/classes/eztemplatenodetool.php on line 300
Warning: PHP Jul 25 2004 19:42:33
Undefined offset: 0 in /home/ftkfztae/public_html/content/lib/eztemplate/classes/eztemplatenodetool.php on line 290

I'm not going to worry too much about this since the code works but I thought I'd mention it FYI.

Terry

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 00:37:24
Script start
Timing: Jan 31 2025 00:37:24
Module start 'layout'
Timing: Jan 31 2025 00:37:24
Module start 'content'
Timing: Jan 31 2025 00:37:24
Module end 'content'
Timing: Jan 31 2025 00:37:24
Script end

Main resources:

Total runtime0.0280 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.0067 588.1406151.2109
Module start 'layout' 0.00670.0045 739.3516220.6875
Module start 'content' 0.01120.0149 960.0391993.7891
Module end 'content' 0.02600.0019 1,953.828129.9922
Script end 0.0280  1,983.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002810.0977140.0002
Check MTime0.00114.0319140.0001
Mysql Total
Database connection0.00196.692410.0019
Mysqli_queries0.00227.742130.0007
Looping result0.00000.057010.0000
Template Total0.00145.110.0014
Template load0.00113.931510.0011
Template processing0.00031.167210.0003
Override
Cache load0.00072.449310.0007
General
dbfile0.00114.020080.0001
String conversion0.00000.024740.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