Re: CGI Problem

by "Timothy Embler" <multipleimage(at)myrealbox.com>

 Date:  Sun, 4 Mar 2001 15:24:21 -0700
 To:  <hwg-techniques(at)hwg.org>
 References:  p mobile
  todo: View Thread, Original
one other thing.  is if maybe it got deleted and re uploaded.  make sure it
has the proper permissions.

Tim

----- Original Message -----
From: "Darrell King" <darrell(at)webctr.com>
To: <hwg-techniques(at)hwg.org>
Sent: Sunday, March 04, 2001 5:57 AM
Subject: Re: CGI Problem


> If you redesigned your site, you may have moved the script via
> FTP...?  If so, you must be sure to transfer it using ASCII mode,
> or you will have unexplained problems due to bad formatting of the
> code.
>
> The line /usr/lib/sendmail is the path to sendmail, and is not a
> part of the local virtual server but rather the configuration of
> the machine the hosting is on.  It is unlikely that it changed if
> you made no changes to the script, but there is an outside change
> that they changed it, coincidentally, while you where changing the
> site.  This can usually be checked in the 1st few lines of the
> script itself, where there are often configuration settings.  Look
> for the sendmail one.  It usually looks something like:
>
> $mailpath="/usr/lib/sendmail";
>
> This is a very common location for sendmail, though, and I would
> think it more likely that a bad FTP transfer was the culprit.
>
> On the HTML side, you may have a malformed HTML form, missing some
> hidden fields in your HTML form that were there in the last
> version or other necessary info.
>
> Hidden Fields: you can check this by looking at the source code
> for the old version of your page and seeing if there are any input
> fields of type 'hidden' in the area between the opening and
> closing form tags.
>
> Visible fields: the example you give below shows ho submit button
> or field for the target email addresses.  Because you say you
> tested it, I have to assume that you do actually have these fields
> in the page in question.  Be aware that you can't send email to a
> blank address, so the form should be submitting the email
> addresses it is intended to go to...?
>
> The fact that you are getting an error says that you have the
> correct URL to the script and that the script is executing.  Don't
> go changing things in a whirlwind fashion...work your way through
> the list of possible bugs in a methodical manner and you will find
> the problem...:)
>
> D
>
> ----- Original Message -----
> From: "Sunil Bahl" <sunilbahl(at)tigersden.i-p.com>
>
> Dear Friends,
>
> I have this "Tell a Friend" CGI script that I had got from
> BigNoseBird.com sometime last year. This script has been working
> beautifully since the time I got it.
>
> Now I have just finished re-designing my site and when I went to
> test the page i got "MAIL NOT SENT. SMTP ERROR: -3". Now i asked
> my hosting company why this was happening they told me that I had
> to put /usr/lib/sendmail. What they did not tell me was where? I
> do not have any directory on the server with the path as
> /usr/lib/sendmail.
>
> Currently I have the following in my HTML code at
> http://www.tigers-den.net/tell.htm :
>
> <form method="POST"
> action="http://www.tigers-den.net/cgi-bin/birdcast.cgi">
> </form>
>
> I have not made any changes to the CGI Script (as I am not a CGI
> programmer). Can someone please help me to get this script to work
> again.
>
> Await your reply's.
>
>
>
>
>

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA