info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: cvsweb


From: Hanser, Kevin
Subject: RE: cvsweb
Date: Mon, 16 Oct 2000 13:54:56 -0400

Hmmm... I put the code that you suggested in, but I'm still getting 500
Internal Server errors...

when I run from the prompt, it gives me this message:

Use of uninitialized value in substitution (s///) at ./cvsweb.cgi line 128.
Use of uninitialized value in substitution (s///) at ./cvsweb.cgi line 128.
Use of uninitialized value in pattern match (m//) at ./cvsweb.cgi line 142.
Use of uninitialized value in pattern match (m//) at ./cvsweb.cgi line 154.
Use of uninitialized value in pattern match (m//) at ./cvsweb.cgi line 154.
Status: 301 Moved
Location: /
Content-type: text/html

<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN"
 "http://www.w3.org/TR/REC-html40/loose.dtd";>
<html>
<title>Moved</title>
<!-- hennerik CVSweb $Revision: 1.93 $ -->
</head>
<body text="#000000" bgcolor="#ffffff">
<img src="/icons/apache_pb.gif"> <h1 align="center">Moved</h1>
This document is located <A HREF=/>here</A>.
<hr noshade><address><font size=-1>CVSweb by
&lt;address@hidden&gt;</font></address>


I'm wondering what the "Status: 301 Moved" means...?
I looked for that line in the code:

        if (defined($ENV{'MOD_PERL'})) {
                Apache->request->status(301);
                Apache->request->header_out(Location => $url);
        }
        else {
                print "Status: 301 Moved\r\n";
                print "Location: $url\r\n";
        }

and it looks like it's looking for Mod_Perl... I didn't realize Mod-Perl was
required for CVSWeb?


Kevin 

-----Original Message-----
From: Garth Winter Webb [mailto:address@hidden
Sent: Monday, October 16, 2000 1:06 PM
To: address@hidden
Subject: RE: cvsweb


Looking into cvsweb.cgi, it looks like perl 5.6.0 is just having problems
with cvsweb's use of functions with explicit argument types.  Declaring
some function prototypes at the top should fix this.  Try this patch:

--- cut here ---
109a110,120
> ##### Funtion Prototypes #####
> 
> sub viewable($);
> sub html_header($);
> sub chooseMirror();
> sub chooseCVSRoot();
> sub toggleQuery($$);
> sub readableTime($$);
> 
> ##### End of Function Prototypes #####
> 
--- cut here ---




reply via email to

[Prev in Thread] Current Thread [Next in Thread]