Gossamer Forum
Home : Products : DBMan : Customization :

Nasty Error

Quote Reply
Nasty Error
Keep getting this nasty error:

Undefined subroutine &main::html_upload_failure called at /usr/local/etc/httpd/cgi-bin/saleowner/file-upload.cgi line 172.
Please send mail to this site's webmaster for help.


I've placed my files at:
http://www.nw-home.com/errors:

db.cgi.txt
file-upload.cgi.txt
king.cfg.txt
king.pl.txt


Hey JP....haven't heard from you in awhile...
I'm still plugging away at this. This is for file uploads... Any chance of you looking at it for me?

Something that would be nice to discuss would be I need to upload anywhere from 1 to 6 images and would like it to create a folder based on the user id. Have you seen any examples of something like that.

Have a great weekend....

Fred
Quote Reply
Re: Nasty Error In reply to
fredp,

That error message means that the script has been told to use a subroutine called html_upload_failure, and perl can't find that subroutine, in your case, because it doesn't exist. You'll have to create a subroutine that will handle these errors, telling users that their upload has failed. Or you could send the error off to cgierror.

adam
Quote Reply
Re: Nasty Error In reply to
Thanks...but that doesn't tell me a lot....I can't figure why it's failing...
Quote Reply
Re: Nasty Error In reply to
Was I supposed to answer something that I missed? That happens sometimes.

I guess that was part of it that I didn't change with my latest version of the mod. I'll look into it.

However, if the script is looking for that subroutine, it means that there was a problem with the upload -- either a file with an extension you haven't defined as acceptable, or a file that's larger than what you have defined as acceptable.


------------------
JPD