You are here: Foswiki>Tasks Web>Item8426 (16 Jul 2010, AndrewJones)Edit Attach

Item8426: 'Use of uninitialized value' message in kinoupdate

pencil
Priority: Low
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: KinoSearchContrib
Branches:
Reported By: AndrewJones
Waiting For:
Last Change By: AndrewJones
From Support.Question332.

Proposed fix by BenBomgardner:

Line 228: lib/Foswiki/Contrib/KinoSearchContrib/Index.pm
next if ( ( !defined($topicName) ) || ( $skipTopics{"$web.$topicName"} ) || ( $skipTopics{$topicName} ) );

-- AndrewJones - 26 Jan 2010

what about $changes? i went with this:

-        next if ( (!$changes) || ( $skipTopics{"$web.$topicName"} ) || ( $skipTopics{$topicName} ) );
+        next if ( ( !defined $topicName ) || (!$changes) || ( $skipTopics{"$web.$topicName"} ) || ( $skipTopics{$topicName} ) );

-- WillNorris - 26 Feb 2010

please change the following or we are getting an error Global symbol "$changes" requires explicit package name at /var/www/foswiki/lib/Foswiki/Contrib/KinoSearchContrib/Index.pm line 228.
--- lib/Foswiki/Contrib/KinoSearchContrib/Index.pm.bak 2010-03-12 00:54:05.000000000 +0100
+++ lib/Foswiki/Contrib/KinoSearchContrib/Index.pm     2010-04-13 19:54:38.839943713 +0200
@@ -225,7 +225,7 @@
         my ( $topicName, $userName, $changeTime, $revision ) =
           split( /\t/, $change );

-        next if ( ( !defined $topicName ) || (!$changes) || ( $skipTopics{"$web.$topicName"} ) || ( $skipTopics{$topicName} ) );
+        next if ( ( !defined $topicName ) || (!$change) || ( $skipTopics{"$web.$topicName"} ) || ( $skipTopics{$topicName} ) );

         if ( ( %exclude ) || ( !$exclude{$topicName} ) ) {

-- StefanStidl - 13 Apr 2010

Thanks Stefan. I have uploaded a new version with the fix.

-- AndrewJones - 14 Apr 2010

 
Topic revision: r8 - 16 Jul 2010, AndrewJones
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