Item13058: statistics
script can not create statistics for subwebs.
Priority: Normal
Current State: Closed
Released In: 2.0.0
Target Release: major
When creating statistics for subwebs, e.g.:
./statistics -logdate 201409 -webs $WEB -autocreate 1 -subwebs 1
An error occures:
Can't locate object method "user" via package "Foswiki::WebFilter" at /var/www/foswiki/lib/Foswiki/UI/Statistics.pm line 153.
Changing line 153 in Foswiki/UI/Statistics.pm to
unless $Foswiki::WebFilter::user->ok( $session, "$subweb/$w" );
solves the problem
Current line 153 (+154):
unless Foswiki::WebFilter->user()->ok( $session, "$subweb/$w" );
--
BenjaminMartin - 20 Oct 2014
This is fixed already in Foswiki 1.2. The global variable "user" was changed to a method so that user() would work correctly, and it fixed a memory leak in the tests. See
Tasks.Item11349. Checking in the above fix for a 1.1.10 release if we build it.
--
GeorgeClark - 21 Oct 2014