Would you turn Debug to -2 and trace the output before
it happens, and then send that bit of log since server
restart?
See if you have any StatINC* settings turned on, turn them
off, as they will reload libraries, and might be tripping
something up.
Also, should we not get this worked out, try the
$Request->{FileUpload} interface.
--Joshua
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NodeWorks >> free web link monitoring Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051
Eric B wrote:
>
> Using Apache::ASP (latest build) I have problems uploading images.
> Sometimes, I get the following error through the http channel, (same error
> is seen in error-log)
>
> Errors Output
> > Undefined subroutine CGI::upload
> , /usr/local/libdata/perl5/site_perl/Apache/ASP.pm line 1229
>
> Clearly, this stems from my use of CGI.pm in my ASP page.
>
> my ($q) = new CGI;
>
> ( .... }
>
> my ($upfile) = $q->upload("newimage");
>
> But... this is kind of strange because it only occurs SOMETIMES. And it
> does not occur in a standard perl script.
>
> I included a dump of my config below.
>
> Thanks,
>
> Eric
>
> -------------------------------------
>
> Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
> Platform:
> osname=openbsd, osvers=2.6, archname=i386-openbsd
> uname='openbsd'
> hint=recommended, useposix=true, d_sigaction=define
> usethreads=undef useperlio=undef d_sfio=undef
> Compiler:
> cc='cc', optimize='-O2', gccversion=2.95.1 19990816 (release)
> cppflags=''
> ccflags =''
> stdchar='char', d_stdstdio=undef, usevfork=true
> intsize=4, longsize=4, ptrsize=4, doublesize=8
> d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
> alignbytes=4, usemymalloc=n, prototype=define
> Linker and Libraries:
> ld='ld', ldflags =''
> libpth=/usr/lib
> libs=-lm -lc
> libc=/usr/lib/libc.so.23.1, so=so, useshrplib=false, libperl=libperl.a
> Dynamic Linking:
> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=define, ccdlflags=' '
> cccdlflags='-DPIC -fPIC ', lddlflags='-Bforcearchive -Bshareable '
>
> Characteristics of this binary (from libperl):
> Built under openbsd
> Compiled at Oct 31 1999 11:41:08
> @INC:
> /usr/libdata/perl5/i386-openbsd/5.00503
> /usr/local/libdata/perl5/i386-openbsd/5.00503
> /usr/libdata/perl5
> /usr/local/libdata/perl5
> /usr/local/libdata/perl5/site_perl/i386-openbsd
> /usr/libdata/perl5/site_perl/i386-openbsd
> /usr/local/libdata/perl5/site_perl
> /usr/libdata/perl5/site_perl
>
> -------------------------------------
>
> Server version: Apache/1.3.12 (Unix)
> Server built: Jun 17 2000 16:03:54
> Server's Module Magic Number: 19990320:7
> Server compiled with....
> -D HAVE_MMAP
> -D HAVE_SHMGET
> -D USE_MMAP_SCOREBOARD
> -D USE_MMAP_FILES
> -D USE_FLOCK_SERIALIZED_ACCEPT
> -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
> -D HTTPD_ROOT="/usr/local/apache"
> -D SUEXEC_BIN="/usr/local/apache/bin/suexec"
> -D DEFAULT_PIDLOG="logs/httpd.pid"
> -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
> -D DEFAULT_LOCKFILE="logs/accept.lock"
> -D DEFAULT_XFERLOG="logs/access_log"
> -D DEFAULT_ERRORLOG="logs/error_log"
> -D TYPES_CONFIG_FILE="conf/mime.types"
> -D SERVER_CONFIG_FILE="conf/httpd.conf"
> -D ACCESS_CONFIG_FILE="conf/access.conf"
> -D RESOURCE_CONFIG_FILE="conf/srm.conf"
>
> -------------------------------------
> And, from my httpd.conf:
>
> <Directory "/home/euro/www">
>
> <Files ~ (\.asp)>
> #SetHandler perl-script
> AddHandler perl-script .asp
> PerlSetVar Filter On
> PerlHandler Apache::ASP Apache::SSI
> PerlSetVar Global /home/euro/asp
> PerlSetVar DynamicIncludes 0
> PerlSetVar StateDB DB_File
> PerlSetVar GlobalPackage main
> PerlSetVar UseStrict 0
> PerlSetVar Debug 2
> PerlSetVar StatINC 0
> </Files>
>
> Options Includes ExecCGI FollowSymLinks
> #Options Indexes FollowSymLinks ExecCGI Includes
> #AllowOverride AuthConfig Limit
> #Order allow,deny
> Allow from all
> </Directory>