> -----Original Message-----
> From: amy [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 26, 2000 3:27 PM
> To: Geoffrey Young
> Subject: Re: ques on error msg
> 
> 
> Geoffrey Young wrote:
> 
> > > -----Original Message-----
> > > From: amy [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, May 26, 2000 1:51 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: ques on error msg
> > >
> > >
> > >
> > > every now and then I got some error messages in
> > > the file /logs/error_log, but everything works fine.
> > >
> > > ##  first error
> > > Use of uninitialized value at
> > > /usr/local/bin/apache/cgi-bin/lib.pl line
> > > 749.
> > > ##
> > > 721  $name = '';
> >
> > are you running under Apache::Registry?  If so, you should always
> > use strict;
> >
> > and declare all variables with my (as you did below)
> >
> 
> the startup.perl file already has 'use strict'

but this will affect only your startup script - each script should 'use
strict'...

> #!/usr/local/bin/perl
> use strict;
> use Apache::Registry;
> use CGI;
> use DBI();
> 1;
> 
> I tried using 'my $name='';' on line 721
> same error msg complaining about line 749
> 
> >
> > you can also set
> > PerlWarn On
> >
> > in httpd.conf to help troubleshoot errors like this
> >
> > > 722  my $fieldname = $cursor->{NAME>->[$i];
> > > 723  $name = lc($fieldname);
> > > :
> > > 749  if ( $name eq 'eventnum' || $name eq 'debugnum' ) {
> > > -->>  is it true line 721 already initilialized it ?
> > >
> > > ##  second error
> > > DBI::db=HASH(0x1ff304)->disconnect invalidates 1 active
> > > statement handle (either destroy statement handles or call
> > > finish on them before disconnecting) at
> > > /usr/local/bin/apache/cgi-bin/lib.pl line 41.
> > > ##
> >
> > the error typically means that you are calling disconnect 
> (or the script is
> > ending) before calling $sth->finish.
> >
> 
> yes, found out where it is, fixed, and problem gone.
> Thank You.

sure...

--Geoff

> 
> 
> >
> > HTH
> >
> > --Geoff
> 

Reply via email to