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
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