r2 - 08 Aug 2004 - 18:54:32 - PeterThoenyYou are here: TWiki >  Codev Web > PatchForErrorsInHttpdLog
Tags:
, create new tag
If there are any failing plugins and you use %FAILEDPLUGINS% then you get errors in the server log. This patch fixes them.
Index: Plugins.pm
===================================================================
--- Plugins.pm  (revision 1702)
+++ Plugins.pm  (working copy)
@@ -388,9 +388,11 @@
    $text.="\n\n";

    foreach my $handler (@registrableHandlers) {
-      $text .= "| $handler |";
-      $text .= join "<br />", @{$registeredHandlers{$handler}};
-      $text .= "|\n";
+     $text .= "| $handler | ";
+     if ( defined( $registeredHandlers{$handler} )) {
+       $text .= join "<br />", @{$registeredHandlers{$handler}};
+     }
+     $text .= " |\n";
    }

-- CrawfordCurrie - 08 Aug 2004

Thanks Crawford, is now in SVN.

-- PeterThoeny - 08 Aug 2004

 
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo