New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
You are here: Foswiki>Tasks Web>Item10172 (11 Apr 2012, GeorgeClark)Edit Attach

Item10172: Error with Statistics

Priority: Normal
Current State: Closed
Released In: 1.1.5
Target Release: patch
Applies To: Engine
Component: FoswikiLogger, FoswikiUIStatistics
Branches: Release01x01 trunk
Reported By: GuruprasadIyer
Waiting For:
Last Change By: GeorgeClark
When I refresh my Statistics page I get the following error:

Use of uninitialized value $line[0] in substitution (s///) at e:/Foswiki/lib/Foswiki/Logger/ line 122, <$fh> line 26220. at C:/strawberry/perl/lib/CGI/ line 354 CGI::Carp::realdie('Use of uninitialized value $line[0] in substitution (s///) at...') called at C:/strawberry/perl/lib/CGI/ line 435 CGI::Carp::die('Use of uninitialized value $line[0] in substitution (s///) at...') called at e:/Foswiki/lib/ line 144 Foswiki::__ANON__('Use of uninitialized value $line[0] in substitution (s///) at...') called at e:/Foswiki/lib/Foswiki/Logger/ line 122 Foswiki::Logger::PlainFile::EventIterator::hasNext('Foswiki::Logger::PlainFile::EventIterator=HASH(0x1617ee4)') called at e:/Foswiki/lib/Foswiki/UI/ line 249 Foswiki::UI::Statistics::_collectLogData('Foswiki=HASH(0xe0c274)', '1 Dec 2010') called at e:/Foswiki/lib/Foswiki/UI/ line 102 Foswiki::UI::Statistics::statistics('Foswiki=HASH(0xe0c274)') called at e:/Foswiki/lib/Foswiki/ line 316 Foswiki::UI::__ANON__() called at e:/Foswiki/lib/CPAN/lib/ line 379 eval {...} called at e:/Foswiki/lib/CPAN/lib/ line 371 Error::subs::try('CODE(0x3d8bbc)', 'HASH(0xe0bfa4)') called at e:/Foswiki/lib/Foswiki/ line 435 Foswiki::UI::_execute('Foswiki::Request=HASH(0xdfd4fc)', 'CODE(0x74febc)', 'statistics', 1) called at e:/Foswiki/lib/Foswiki/ line 277 Foswiki::UI::handleRequest('Foswiki::Request=HASH(0xdfd4fc)') called at e:/Foswiki/lib/Foswiki/Engine/ line 37 Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x97ab14)') called

I have set $ENV{FOSWIKI_ASSERTS} = 1 in LocalLib.cfg; I am using Foswiki 1.1.2 on Windows with Strawberry Perl.

-- GuruprasadIyer - 17 Dec 2010

This is caused by corrupted log records. Hopefully fixed in 1.1.5 if I've managed to recreate similar corruption.

-- GeorgeClark - 08 Mar 2012
Topic revision: r7 - 11 Apr 2012, GeorgeClark - This page was cached on 18 Sep 2018 - 15:19.

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