Foswiki on GitHub is open for business! Next release meeting: Monday October 13, 1300Z

Item10172: Error with Statistics

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Engine FoswikiLogger, FoswikiUIStatistics  
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/PlainFile.pm line 122, <$fh> line 26220. at C:/strawberry/perl/lib/CGI/Carp.pm line 354 CGI::Carp::realdie('Use of uninitialized value $line[0] in substitution (s///) at...') called at C:/strawberry/perl/lib/CGI/Carp.pm line 435 CGI::Carp::die('Use of uninitialized value $line[0] in substitution (s///) at...') called at e:/Foswiki/lib/Foswiki.pm line 144 Foswiki::__ANON__('Use of uninitialized value $line[0] in substitution (s///) at...') called at e:/Foswiki/lib/Foswiki/Logger/PlainFile.pm line 122 Foswiki::Logger::PlainFile::EventIterator::hasNext('Foswiki::Logger::PlainFile::EventIterator=HASH(0x1617ee4)') called at e:/Foswiki/lib/Foswiki/UI/Statistics.pm line 249 Foswiki::UI::Statistics::_collectLogData('Foswiki=HASH(0xe0c274)', '1 Dec 2010') called at e:/Foswiki/lib/Foswiki/UI/Statistics.pm line 102 Foswiki::UI::Statistics::statistics('Foswiki=HASH(0xe0c274)') called at e:/Foswiki/lib/Foswiki/UI.pm line 316 Foswiki::UI::__ANON__() called at e:/Foswiki/lib/CPAN/lib/Error.pm line 379 eval {...} called at e:/Foswiki/lib/CPAN/lib/Error.pm line 371 Error::subs::try('CODE(0x3d8bbc)', 'HASH(0xe0bfa4)') called at e:/Foswiki/lib/Foswiki/UI.pm line 435 Foswiki::UI::_execute('Foswiki::Request=HASH(0xdfd4fc)', 'CODE(0x74febc)', 'statistics', 1) called at e:/Foswiki/lib/Foswiki/UI.pm line 277 Foswiki::UI::handleRequest('Foswiki::Request=HASH(0xdfd4fc)') called at e:/Foswiki/lib/Foswiki/Engine/CGI.pm 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
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License