Tags:
create new tag
, view all tags

Question

When I run twiki/bin/statistics, it only updates the stats for the WebHome page. The documentation appears to state that it should update statistics for all of the pages.

Configuring for Automatic Operation

  • Call the twiki/bin/statistics script from a cron job, once a day is recommended. This will update the WebStatistics topics in all webs.

Command invoked

/usr/bin/curl --insecure https://HOSTNAME/twiki/bin/statistics >/dev/null 2>&1

Output of the command.

<h3>TWiki: Create Usage Statistics</h3>
<h4><span class="twikiAlert">Do not interrupt this script!</span></h4>
(Please wait until page download has finished)<br />
* Statistics for Nov 2006<br />
* Executed by TWikiGuest<br />
* Reporting on TWiki.Main web<br />
&nbsp;&nbsp;- view: 17, save: 0, upload: 0<br />
&nbsp;&nbsp;- top view: &nbsp;&nbsp;4 WebHome<br />
&nbsp;&nbsp;- Topic WebStatistics updated<br />
* Go back to <a rel="nofollow" href="/twiki/bin/view/Main/WebStatistics">WebStatistics</a><br />
<h3>End creating usage statistics</h3>

Comment on documentation

The documentation appears to be out of date as it still refers to geturl which is no longer included.

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Apple OSx 10.4.7
Web server: Apache
Perl version: v5.8.6
Client OS: n/a
Web Browser: n/a
Categories: Statistics

-- BobVanCleef - 02 Nov 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

This was a bug in TWiki 4.0.0 to 4.0.2: Only the Main web was updated if run from the browser, Bugs:Item2347 was fixed in 4.0.3. Could you verify the version you are using? Please upgrade to the latest version, or fix your TWiki:

Modified: twiki/branches/TWikiRelease04x00/lib/TWiki/UI/Statistics.pm
===================================================================
--- twiki/branches/TWikiRelease04x00/lib/TWiki/UI/Statistics.pm   2006-05-30 23:33:36 UTC (rev 10397)
+++ twiki/branches/TWikiRelease04x00/lib/TWiki/UI/Statistics.pm   2006-05-31 07:36:39 UTC (rev 10398)
@@ -135,9 +135,6 @@
 
     my @weblist;
     my $webSet = $session->{cgiQuery}->param( 'webs' );
-    unless( defined( $webSet ) || $session->inContext( 'command_line' )) {
-        $webSet = $session->{webName};
-    }
     if( $webSet) {
         # do specific webs
         push( @weblist, split( /,\s*/, $webSet ));

geturl is still there, but in the tools directory. The doc needs to be updated.

-- PeterThoeny - 03 Nov 2006

Thanks for your fast response. -- I wasn't sure of the version as it was reported as a CVS checkout date, not a version number. I will insure that the server is brought up to date. -- Bob

-- BobVanCleef - 03 Nov 2006

 
Change status to:
Topic revision: r3 - 2006-11-03 - BobVanCleef
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.