You are here: TWiki> Codev Web>PatchForErrorsInHttpdLog (2004-08-08, PeterThoeny)
Tags:
create new tag
, view all tags
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

 
Topic revision: r2 - 2004-08-08 - 18:54:32 - PeterThoeny
 

Codev

share: Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon
Twiki, Inc.
This site is powered by the TWiki collaboration platform
Ideas, requests, problems regarding TWiki? Send feedback
Copyright © 1999-2010 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.