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