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.
Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    New to the CF scene
    Join Date
    May 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    nms formmail...help!

    Hello,

    Im trying to setup nms formmail. But is doesn't work for me.

    I can't find the mistake. PLEASE help.

    and I upload the email file to cgi-bin, and the permission there is 755

    but I still get an error.

    when I click "summit" on
    http://mckinlay.us.com/MCK-contact-us.html

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    http://mckinlay.us.com/cgi-bin/fmsx.pl

    #!/usr/bin/perl -wT
    #
    # NMS FormMail Version 3.14c1
    #

    use strict;
    use vars qw(
    $DEBUGGING $emulate_matts_code $secure %more_config
    $allow_empty_ref $max_recipients $mailprog @referers
    @allow_mail_to @recipients %recipient_alias
    @valid_ENV $date_fmt $style $send_confirmation_mail
    $confirmation_text $locale $charset $no_content
    $double_spacing $wrap_text $wrap_style $postmaster
    $address_style
    );

    # PROGRAM INFORMATION
    # -------------------
    # FormMail.pl Version 3.14c1
    #
    # This program is licensed in the same way as Perl
    # itself. You are free to choose between the GNU Public
    # License <http://www.gnu.org/licenses/gpl.html> or
    # the Artistic License
    # <http://www.perl.com/pub/a/language/misc/Artistic.html>
    #
    # For help on configuration or installation see the
    # README file or the POD documentation at the end of
    # this file.

    # USER CONFIGURATION SECTION
    # --------------------------
    # Modify these to your own settings. You might have to
    # contact your system administrator if you do not run
    # your own web server. If the purpose of these
    # parameters seems unclear, please see the README file.
    #
    BEGIN
    {
    $DEBUGGING = 0;
    $emulate_matts_code= 0;
    $secure = 1;
    $allow_empty_ref = 1;
    $max_recipients = 1;
    $mailprog = '/usr/sbin/sendmail -oi -t';
    $postmaster = '';
    @referers = qw(mckinlay.us.com localhost);
    @allow_mail_to = qw(andrew@mckinlay.us.com localhost);
    @recipients = ();
    %recipient_alias = ('1'=>'andrew@mckinlay.us.com');('2' => 'fivestar@mckinlay.us.com')
    @valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT);
    $locale = '';
    $charset = 'iso-8859-1';
    $date_fmt = '%A, %B %d, %Y at %H:%M:%S';
    $style = '/css/nms.css';
    $no_content = 0;
    $double_spacing = 1;
    $wrap_text = 0;
    $wrap_style = 1;
    $address_style = 0;
    $send_confirmation_mail = 0;
    $confirmation_text = <<'END_OF_CONFIRMATION';
    From: you@your.com
    Subject: form submission

    Thank you for your form submission.

    END_OF_CONFIRMATION

    # You may need to uncomment the line below and adjust the path.
    # use lib './lib';

    # USER CUSTOMISATION SECTION

  • #2
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,877
    Thanks
    2
    Thanked 164 Times in 159 Posts
    Have you checked the web server error log? I should give you a clue to the problem.

    Did you upload from a Windows box to a *nix server?

    Did you ftp the file to the server or use another method? If via ftp, did you upload in ascii or binary mode?

  • #3
    New to the CF scene
    Join Date
    May 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Thanks for your help

    I uploaded fmsx.pl in to the cgi-bin as ASCII. Permission 755

    The error logs:

    ror] [client 65.87.0.10] File does not exist: /home/mckinlay/public_html/500.shtml
    [Wed May 06 15:06:27 2009] [error] [client 65.87.0.10] File does not exist: /home/mckinlay/public_html/500.shtml, referer: http://mckinlay.us.com/MCK-contact-us.html


    No idea what it means

    Any idea???

    Thanks

    Ivita

  • #4
    Senior Coder
    Join Date
    Mar 2006
    Posts
    1,274
    Thanks
    2
    Thanked 39 Times in 38 Posts
    When I try the URI of the script all I see is a blank page:

    http://www.mckinlay.us.com/cgi-bin/fmsx.pl

    and in the source code of the blank page all I see is an html comment tag:


    <!--

    -->

    That could be the server trying to redirect to an error page though.

  • #5
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by Ivita View Post
    I uploaded fmsx.pl in to the cgi-bin as ASCII. Permission 755

    The error logs:

    ror] [client 65.87.0.10] File does not exist: /home/mckinlay/public_html/500.shtml
    [Wed May 06 15:06:27 2009] [error] [client 65.87.0.10] File does not exist: /home/mckinlay/public_html/500.shtml, referer: http://mckinlay.us.com/MCK-contact-us.html


    No idea what it means

    Any idea???

    Thanks

    Ivita
    the errors must be in log file before the lines you posted. This message just say that you don't have a page for error 500. The script probably end with a 'premature end of script header' and a line number.

    best regards

  • #6
    New to the CF scene
    Join Date
    May 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Still no clue



    This is my HTML , I don't receive any emails, and is no redirecting to the proper pages. What its wrong?

    Please help


    <!-- Begin Form -->
    <form method="post" action="http://www.mckinlay.us.com/cgi-bin/fmsx.pl" name="form1" id="form1" style="margin-top: 0pt;" onsubmit="return formCheck()" autocomplete="off">
    <input name="recipient" value="1" type="hidden">
    <input name="redirect" value="http://www.mckinlay.us.com/MCK-confirm.html" type="hidden">
    <input name="missing_fields_redirect" value="http://www.mckinlay.us.com/MCK-missing.html" type="hidden">
    <input name="required" value="email,message" type="hidden">
    <table summary="" border="0" cellpadding="0" cellspacing="0" width="420">

    <tbody><tr>
    <td valign="top" width="210">
    <span class="formtext">Name:</span>
    <br>
    <input name="realname" id="realname" class="form1" value="" style="height: 18px;" onkeypress="return handleEnter(this, event)" type="text" size="20">
    <br>
    <span class="formtext">E-mail:</span>&nbsp;<span class="required">(required)</span>

    <br>
    <input name="email" id="email" class="form1" value="" style="height: 18px;" onkeypress="return handleEnter(this, event)" onchange="stripSpace(this)" type="text" size="20">
    <br>
    <span class="formtext">Phone:</span>
    <br>
    <input name="phone" id="phone" class="form1" value="" style="height: 18px;" onkeypress="return handleEnter(this, event)" type="text" size="20">
    <br>
    <br>

    <input src="Images/submit.jpg" style="margin-right: 20px;" alt="submit" align="left" type="image" width="69" height="21" name="summit">
    <input type="image" src="Images/reset.jpg" alt="reset" onClick="resetForm();document.form1.reset();return false;" width="59" height="21" name="I1">
    </td>
    <td valign="top" width="210">
    <span class="formtext">Message:</span>&nbsp;<span class="required">(required)</span>
    <br>
    <textarea name="message" id="message" cols="24" rows="6" class="form2"></textarea>
    </td>

    </tr>
    </tbody></table>
    </form>
    <!-- End Form -->

  • #7
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,877
    Thanks
    2
    Thanked 164 Times in 159 Posts
    As oesxyl already said, the error message that we need is prior to the one you posted. Take another look at the log file and post all error messages relating to accessing/executing the fmsx.pl script.

  • #8
    New to the CF scene
    Join Date
    May 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I can't find those error logs

    This are all the error logs


    Error Log
    Last 300 Error Log Messages in reverse order:

    [Thu May 07 09:47:14 2009] [error] [client 65.87.0.10] File does not exist: /home/mckinlay/public_html/favicon.ico
    [Thu May 07 09:41:24 2009] [error] [client 66.240.53.94] File does not exist: /home/mckinlay/public_html/favicon.ico
    [Thu May 07 09:32:40 2009] [error] [client 65.87.0.10] File does not exist: /home/mckinlay/public_html/favicon.ico

  • #9
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,877
    Thanks
    2
    Thanked 164 Times in 159 Posts
    That error is an entirely separate issue.

    We need to see the errors that relate to the form submission to the fmsx.pl script, but exclude all favicon.ico errors.

  • #10
    New to the CF scene
    Join Date
    May 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I can't find the errors

    In cpanel- error logs
    all those the only error recorded

    Where I can find the errors logs???

  • #11
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,877
    Thanks
    2
    Thanked 164 Times in 159 Posts
    Quote Originally Posted by Ivita View Post
    In cpanel- error logs
    all those the only error recorded

    Where I can find the errors logs???
    That depends on how the server was setup. Do you have telnet or ssh access to the server. If so, then a common location to find it would be:
    /etc/httpd/logs/error_log

    It might be easier just to monitor your cpanel log as you submit the form.

  • #12
    New to the CF scene
    Join Date
    May 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I don't know what server I have

    I don't know what server I have
    I try the location but is not under etc folder.


    General server information:
    Operating system Linux
    Service Status Click to View
    Kernel version 2.6.28.9
    Machine Type i686
    Apache version 2.2.11 (Unix)
    PERL version 5.8.8
    Path to PERL /usr/bin/perl
    Path to sendmail /usr/sbin/sendmail
    Installed Perl Modules Click to View
    PHP version 5.2.9
    MySQL version 5.1.30
    cPanel Build 11.24.4-RELEASE 35075
    Theme cPanel X v2.6.0

  • #13
    New to the CF scene
    Join Date
    May 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Error: GET request

    http://www.mckinlay.us.com/cgi-bin/fmsx.pl


    Error: GET request

    The HTML form fails to specify the POST method, so it would not be correct for this script to take any action in response to your request.

    If you are attempting to configure this form to run with FormMail, you need to set the request method to POST in the opening form tag, like this: <form action="/cgi-bin/FormMail.pl" method="post">

    What it means????? Solution???

  • #14
    New to the CF scene
    Join Date
    May 2009
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Its working!!!!!!!!!!!!!!

    I changed

    <form method="post" action="http://www.mckinlay.us.com/cgi-bin/fmsx.pl" "

    For
    <form method="post" action="/cgi-bin/fmsx.pl" name="form1" id="form1"

    and works!
    Don't understand why but I received the email.

  • #15
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,877
    Thanks
    2
    Thanked 164 Times in 159 Posts
    I get the "Bad Referrer - Access Denied" page as expected when directly accessing the script.

    Double check your form page and make sure the method is set to post and, for now, remove any javascript calls from the form. You could add the javascript back in after testing.


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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