You are here: Foswiki>Tasks Web>Item13058 (05 Jul 2015, GeorgeClark)Edit Attach

Item13058: statistics script can not create statistics for subwebs.

pencil
Priority: Normal
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component: FoswikiUIStatistics
Branches: Release01x01
Reported By: BenjaminMartin
Waiting For:
Last Change By: GeorgeClark
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
 

ItemTemplate edit

Summary statistics script can not create statistics for subwebs.
ReportedBy BenjaminMartin
Codebase 1.1.9
SVN Range
AppliesTo Engine
Component FoswikiUIStatistics
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:c0a6ba10f9b5
TargetRelease major
ReleasedIn 2.0.0
CheckinsOnBranches Release01x01
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins distro:c0a6ba10f9b5
Topic revision: r5 - 05 Jul 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy