Hello Steve ,
[quote="stevesh"]I now have a fix that seems to work (still testing). This is from the usr_params subroutine:
(At the start)
I found 'my($titlemaxlen)' in 'sub make_graph(@)' at ~ line 5857 in 2.20B4 and added the changes to the file .
[code] my($titlemaxlen) = 128;
$titlemaxlen = $config{'routers.cgi-maxtitle'}?$config{'routers.cgi-maxtitle'}:128;
[/code]
(Further down)
I found 'if($mirroring and $lin and $lout )' at ~ line 4858 in 2.20B4 and added the changes to the file .
note: after the changes made above .
[code] if($mirroring and $lin and $lout ) {
$lout = "";
$lin = $interfaces{$curif}{desc};
$lin = substr($lin,0,$titlemaxlen) if(length($lin)>$titlemaxlen);
$lin =~ s/:/\\:/g;
$lin = ":$lin\\l";
} else {
if( !$interfaces{$interface}{nolegend} and
!$interfaces{$interface}{nodetails} and
!$interfaces{$interface}{nodesc} and
$dwmy !~ /s/ and
!$interfaces{$interface}{noi} and
!$interfaces{$interface}{noo}) {
my($tmpt) = $interfaces{$curif}{desc};
$tmpt = substr($tmpt,0,$titlemaxlen)
if(length($tmpt)>$titlemaxlen);
push @params, "COMMENT:".decolon("$tmpt:\\l");
}
}
[/code][/quote]
I then receive this ...
[quote]
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator,
you@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
[/quote]
And this in /var/log/http/error_log
[quote]
[Wed Feb 18 16:52:19 2009] [error] [client 10.1.1.169] Global symbol "$titlemaxlen" requires explicit package name at /var/www/cgi-bin/routers2.cgi line 4864.
[Wed Feb 18 16:52:19 2009] [error] [client 10.1.1.169] Global symbol "$titlemaxlen" requires explicit package name at /var/www/cgi-bin/routers2.cgi line 4864.
[Wed Feb 18 16:52:19 2009] [error] [client 10.1.1.169] Global symbol "$titlemaxlen" requires explicit package name at /var/www/cgi-bin/routers2.cgi line 4875.
[Wed Feb 18 16:52:19 2009] [error] [client 10.1.1.169] Global symbol "$titlemaxlen" requires explicit package name at /var/www/cgi-bin/routers2.cgi line 4876.
[Wed Feb 18 16:52:19 2009] [error] [client 10.1.1.169] Execution of /var/www/cgi-bin/routers2.cgi aborted due to compilation errors.
[Wed Feb 18 16:52:19 2009] [error] [client 10.1.1.169] Premature end of script headers: routers2.cgi
[/quote]
So it seems I have misentered somethign but I sure don't see it .
See the attached diff to see if I did it right .
Hth , JimL[attachment=0]routers2_cgi-diffs-20090218.txt[/attachment]