Peter said at 15:25 7-6-2002:
>Hi yes it was me.
>
>This is what I get
>
>[Sat Jun 8 01:39:19 2002] C:\sambar50\cgi-bin\upload.cgi: Can't call method
>"cwd" on an undefined value at C:/usr/lib/Net/ftp/Common.pm line 156.
>Content-type: text/html
>Software error:
>Can't call method "cwd" on an undefined value at
>C:/usr/lib/Net/ftp/Common.pm line 156.
You can do the following things:
1) Turn off:
CGI stderr = true
in config.ini, but that's server wide and makes debuging under sambar
really hard.
2) Call Net::FTP as:
$ftp = Net::FTP->new("some.host.name", Debug=>0);
3) capture Net::FTP in eval (may not work):
eval
{
... Net::FTP code
}; # note the ;
if($@)
{
# logging code here
}
4) start the script with:
no warnings;
Regarding the specific error message:
make sure there are no undefined values getting into classes.
This sounds a bit abstract, but without the sourcecode, I can't be more
specific :-)
--
Help keep the archives clean:
<quote>responsibly</quote>
-------------------------------------------------------
To unsubscribe please go to http://www.sambar.ch/list/