View Full Version : tfmail problem...

08-01-2007, 09:15 PM
My question: Does the error I'm getting mean that it can't find the "NMStreq.pm" in "/crap"?

I'm still learning this script stuff and I can't figure out this error. I get a 500 error when I try to submit my form. I have the tfmail.pl in cgi-bin and the other files in /temp. The configuration in the tfmail.pl is:

# --------------------------
# Modify these to your own settings, see the README file
# for detailed instructions.

use constant DEBUGGING => 0;
use constant LIBDIR => '/crap';
use constant MAILPROG => '/usr/sbin/sendmail -oi -t';
use constant POSTMASTER => 'reservations@akcottages.com';
use constant CONFIG_ROOT => '/crap';
use constant SESSION_DIR => '.';
use constant MAX_DEPTH => 0;
use constant CONFIG_EXT => '.trc';
use constant TEMPLATE_EXT => '.trt';
use constant ENABLE_UPLOADS => 0;
use constant USE_MIME_LITE => 1;
use constant LOGFILE_ROOT => '';
use constant LOGFILE_EXT => '.log';
use constant HTMLFILE_ROOT => '';
use constant HTMLFILE_EXT => '.html';
use constant CHARSET => 'iso-8859-1';

# ----------------------------

The error in my log is:

[Wed Aug 01 10:52:47 2007] [error] [client] Can't locate NMStreq.pm in @INC (@INC contains: /crap /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at mail.pl line 53.
[Wed Aug 01 10:52:47 2007] [error] [client] BEGIN failed--compilation aborted at mail.pl line 53.
[Wed Aug 01 10:52:47 2007] [error] [client] Premature end of script headers: mail.pl

08-02-2007, 08:55 AM
LIBDIR - The filesystem path to the location of the .pm files
that come with TFmail.pl. See the section below on
choosing secure locations for files.

CONFIG_ROOT - The filesystem path to the directory that holds all of
the configuration files and template files for the script.
This must be set to the path to the directory on the
server to which you uploaded the .trc and .trt files.

So set the value of the above two constants in tfmail.pl to '/tmp'. Also confirm that the script has been assigned execute permission.