cross
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
This question about Using an extension: Needs followup in Tasks

Remove FCGI Warning

I use version 1.2 of this plugin on a FOSWIKI installation with fcgi. My errorlog is filled with the following warning
mod_fcgid: stderr: Exiting eval via last at /srv/Foswiki-1.1.3/lib/Foswiki/Plugins/SqlPlugin/Core.pm line 345., referer: https://wiki.d-fine.local/Sandbox/WebHome

I changed the code in Core.pm in the following way to get rid of it (basicly putting the "last" statement outside the eval{}.:

@@ -342,9 +344,12 @@
        eval {
                if ($searchQuery =~ /^\s*$query\s*$/) {
                  $queryPasses = 1;
-                 last;
+                 #last; #put outside, fcgi complains
                }
-       }
+       };
+        if ($queryPasses) {
+               last ;
+       };
       }
     }

Maybe this could be included in a future release of this plugin.

-- FrankHoellering - 12 Nov 2012

 

QuestionForm edit

Subject Using an extension
Extension SqlPlugin
Version Foswiki 1.1.3
Status Needs followup in Tasks
Related Topics
Topic revision: r2 - 14 Nov 2012, GeorgeClark - This page was cached on 17 Aug 2018 - 09:30.

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