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 />
- view: 17, save: 0, upload: 0<br />
- top view: 4 WebHome<br />
- 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
--
BobVanCleef - 02 Nov 2006
Answer
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