Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    tfmail problem...

    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';

    # USER CONFIGURATION << END >>
    # ----------------------------



    The error in my log is:

    [Wed Aug 01 10:52:47 2007] [error] [client 72.32.93.144] 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 72.32.93.144] BEGIN failed--compilation aborted at mail.pl line 53.
    [Wed Aug 01 10:52:47 2007] [error] [client 72.32.93.144] Premature end of script headers: mail.pl

  • #2
    Regular Coder
    Join Date
    May 2005
    Posts
    296
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Code:
    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.

    Naveen
    Last edited by nkrgupta; 08-02-2007 at 08:58 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •