ezstats works but view.tpl wont show anything but 0

Author Message

Matthew Almand

Tuesday 12 July 2005 12:13:52 am

I have set up ezstats successfully for one client, everything runs fine. So for another client I also set up ezstats but the view.tpl is not grabbing the numbers from the DB. I know the plugin is working as I can look in the DB and the table is full with recorded entries but the view.tpl just will not display the info it always says 0. Any help?

Thanks

Eivind Marienborg

Tuesday 12 July 2005 12:26:08 am

Is there anything in the debug output?

Have you added the ActiveExtensions[]=stats to your site.ini.append?

Matthew Almand

Tuesday 12 July 2005 12:39:19 am

yes the extension is activated, the DB cannot be populated prior to it being activated. It would seem that everything works it is just that the view.tpl is pointing incorrectly to the DB or something.

Konrad Mazurkiewicz

Tuesday 12 July 2005 9:17:43 am

Hi,
Are You check that every setting is ok?
It should work without problems.

Maybe try version from my svn server. It is not finished and not ready for contrib yet, but is working on few sites without problems.

Eivind - thanks for suggestions. I've made functions You're lookin for, eg.
- Viewing traffic for smaller periods than one month
- Viewing traffic for each section
- Exclude/include by class
and new operator

ezstats_get_list( hash( ['node_id', int],
                        ['section_id', int],
                        ['date', array( oper, date ) | 'date', array( array( date_from, date_to ) )],
                        ['user_id', int],
                        ['class_filter', array( 'include|exclude', array( list_of_class_id's ) ) ],
                        ['offset', int],
                        ['limit', int],
                        ['sort_by', array( 'date|section_id|node_id|user_id', 'asc|desc' )],
                        ['group_by', 'user_id|node_id']
                      ) )

Konrad

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 04:53:52
Script start
Timing: Jan 18 2025 04:53:52
Module start 'layout'
Timing: Jan 18 2025 04:53:52
Module start 'content'
Timing: Jan 18 2025 04:53:54
Module end 'content'
Timing: Jan 18 2025 04:53:54
Script end

Main resources:

Total runtime1.1891 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.5859152.6563
Module start 'layout' 0.00500.0032 742.242239.4922
Module start 'content' 0.00811.1793 781.7344547.0000
Module end 'content' 1.18740.0016 1,328.734412.1250
Script end 1.1891  1,340.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2585160.0002
Check MTime0.00130.1068160.0001
Mysql Total
Database connection0.00070.057310.0007
Mysqli_queries1.133795.3413620.0183
Looping result0.00070.0612600.0000
Template Total1.149696.720.5748
Template load0.00230.189720.0011
Template processing1.147396.483520.5737
Template load and register function0.00020.018610.0002
states
state_id_array0.00170.139610.0017
state_identifier_array0.00310.260420.0015
Override
Cache load0.00190.1613230.0001
Sytem overhead
Fetch class attribute can translate value0.00100.084530.0003
Fetch class attribute name0.00170.139250.0003
XML
Image XML parsing0.00270.226730.0009
class_abstraction
Instantiating content class attribute0.00000.000950.0000
General
dbfile0.00400.3375160.0003
String conversion0.00000.000540.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/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: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs