PDA

View Full Version : help with error message


northshore
08-24-2006, 02:59 PM
Hi,

I am using a form mailer cgi on my website (soupermail.cgi), it has been working fine for 6 months - suddenly yesterday it stopped working.

The form goes through ok - to the success page - but no email message is sent - anyway to make a very very very long story short - i think there is something misconfigured on my host -

I ran the cgi in debug mode and i get this code:
---------------------------------------------
Making text mailto email
CGI::upload: syntax error at (eval 40) line 282
---------------------------------------------

I told my host maybe the perl module CGI::upload was corrupt..
Thay reinstalled it - i tried to run the script again - same error!

i'm not a programmer - but where do i look in the script to further
debug this? where is this line "syntax error at (eval 40) line 282"??

Thank-you for any help on this.
Regards,
northshore

KevinADC
08-24-2006, 07:37 PM
if it was working and now it's not, something changed on the server. This is actually fairly typical. Servers update/upgrade (and sometimes even downgrade) software on servers all the time, this can cause problems with your existing applications. The module your script uses:

CGI::upload

is not a core module but you say your host has installed it. That module has dependencies:

use Carp;
use File::Basename;
use File::MMagic;
use HTTP::BrowserDetect;
use IO::File;

and some of them may need to be installed too, probably File::MMagic and HTTP::BrowserDetect , I think the others are core modules and should already be installed. Ask you host to install any of the above modules if necessary.