Home

   Home

   Download


Help

   FAQ

   Installation

   Message Board

   Importing Data File
   Into GoldMine
   Into Act


Other

   Testimonies

   Custom Programming

   PHP Version


Other Favorites

   Hire a clean comedian

   Bible Search Engine

   Bible in a Year

   Parallel Bible

   The Richer Life










 





[ Message Board Home ]    [ Post Reply ]    [ Log In ]    [ Sign Up ]



  Subject: Internal Server Error 500
  Posted: 05/18/2004 at 7:32:26 pm
  By: stevenrp

I keep getting the error:
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@host.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

I check the log and it says this:
[Tue May 18 22:13:29 2004] [error] [client 24.239.44.113] Premature end of script headers: /home/virtual/site49/fst/var/www/cgi-bin/bizmail.cgi

The path to Perl and Sendmail is correct, I've made sure about the /@ in the sendto and I've set all permissions for all files to 777 as suggested in the readme if there's problems. The MIME directory exists with the Lite.pm and permissions to those to are 777 and the case is correct. The hosting server is runnng RHL.
Any ideas?



  Subject: Re: Internal Server Error 500
  Posted: 05/19/2004 at 6:50:51 am
  By: Seth Knorr

1. Did you edit the script an more than you where supposed to.

2. Did you upload all files in the zip that needed to be uploaded.

3. Does the erorr log show a line number for the error.

4. Are you on a Windows or Linux server, and if Windows you need to download and use the Windows version of the script.

Seth



  Subject: Re: Internal Server Error 500
  Posted: 05/19/2004 at 5:08:00 pm
  By: stevenrp

1. Nope. I just edited it enough to see it work. Didn;t even change the form look.

2. Yes everything in the readme. But it didn't mention the required.cgi file. Is that....well required? lol

3.No line numbers. What I posted id the entire error.

4. My host runs on RHL RedHat Linux

Thanks.



  Subject: Re: Internal Server Error 500
  Posted: 05/20/2004 at 6:33:14 am
  By: Seth Knorr

Yes, required.cgi just needs to be uploaded to the cgi-bin and chmoded to 755. If this script is not uploaded your script may not work.

Seth



  Subject: Re: Internal Server Error 500
  Posted: 05/20/2004 at 6:37:07 am
  By: Seth Knorr

One other side note. If you login to your server via SSH and "cd" to your cgi-bin and then type:
perl cw bizmail.cgi

this will spit out any problems that the script is running into.

Seth





  Subject: Re: Internal Server Error 500
  Posted: 05/20/2004 at 6:50:24 am
  By: stevenrp

Ok, ran at the server via SSH. Here's what I get...

Useless use of a variable in void context at bizmail.cgi line 316.
Useless use of a variable in void context at bizmail.cgi line 318.
Useless use of a variable in void context at bizmail.cgi line 320.
Useless use of a variable in void context at bizmail.cgi line 322.
Name "main::att_content_type" used only once: possible typo at bizmail.cgi line
188.
Name "main::send_email_results" used only once: possible typo at bizmail.cgi lin
e 155.
Name "main::versionnumber" used only once: possible typo at bizmail.cgi line 216
.
Name "main::valueform" used only once: possible typo at bizmail.cgi line 308.
Name "main::required_desc" used only once: possible typo at bizmail.cgi line 346
.
Name "main::sec" used only once: possible typo at bizmail.cgi line 222.
Name "main::formdvalue2" used only once: possible typo at bizmail.cgi line 317.
Name "main::footer" used only once: possible typo at bizmail.cgi line 217.
Name "main::dayofyear" used only once: possible typo at bizmail.cgi line 222.
Name "main::IsDST" used only once: possible typo at bizmail.cgi line 222.
Name "main::att_format" used only once: possible typo at bizmail.cgi line 183.
Name "main::nameform" used only once: possible typo at bizmail.cgi line 307.
Name "main::reply_subject" used only once: possible typo at bizmail.cgi line 619
.
Name "main::dayname" used only once: possible typo at bizmail.cgi line 234.
Name "main::mailprog" used only once: possible typo at bizmail.cgi line 50.
Name "main::PRNT_blankfields" used only once: possible typo at bizmail.cgi line
128.
Name "main::MY_error_page" used only once: possible typo at bizmail.cgi line 119
.
Name "main::sortfields" used only once: possible typo at bizmail.cgi line 342.
Name "main::smtp_server" used only once: possible typo at bizmail.cgi line 52.
Name "main::send_attachement" used only once: possible typo at bizmail.cgi line
175.
bizmail.cgi syntax OK



  Subject: Re: Internal Server Error 500
  Posted: 05/20/2004 at 7:55:00 am
  By: Seth Knorr

Try this.
IN bizmail.cgi After the path to perl add what is inside the double quotes to the end of the path to perl " -w"

So for example it should look something like this:
#!/usr/bin/perl -w

ALSO if this still does not work, try adding the path to perl to the top of ALL the .cgi files you uploaded from the zip file. THIS IS USHUALY NOT NECESARY, but some servers are configured to where it is.

Seth



  Subject: Re: Internal Server Error 500
  Posted: 05/20/2004 at 8:35:37 am
  By: stevenrp

Tried adding the "-w" to the path, didn't work. Added the path to perl in all cgi files and that didn't work either. Any other thoughts?



  Subject: Re: Internal Server Error 500
  Posted: 05/26/2004 at 12:08:55 pm
  By: popzzz

Same problem - everything correct as far as I can tell - did all the forementioned steps - STILL zip!

All the log says is "premature end of script headers" and running perl -cw bizmail.cgi gets same as stevenrp did above.

Did everything suggested above and still get "Internal Server Error 500"

WTF can be wrong???

FTR, Other scripts run fine with no problems.

AAAARRRRRGGGggghhhhhhhhh!!!



  Subject: Re: Internal Server Error 500
  Posted: 05/26/2004 at 12:32:09 pm
  By: Seth Knorr

popzzz

What is the URL, the form and bizmail.cgi are located at?

Seth



  Subject: Re: Internal Server Error 500
  Posted: 05/26/2004 at 12:34:49 pm
  By: popzzz

not public - on a private network



  Subject: Re: Internal Server Error 500
  Posted: 05/26/2004 at 12:36:27 pm
  By: popzzz

ps ... thanks for the KWIK response!

(insert_new_tag_here_) <<<IMPRESSED>>>



  Subject: Re: Internal Server Error 500
  Posted: 05/26/2004 at 1:23:32 pm
  By: popzzz

Okay - found the problem and got a new one ...

The 'formmail' (in my case) directory has to be set to 755 as it was returning:[2004-05-26 16:13:54]: error: directory is writable by others: (/home/virtual/site49/fst/var/www/cgi-bin/formmail)
finally found it)

I get the 'success' page now but it is NOT sending email tried several times and no email received either at the script sendto or at the recipient email.

Now what?




  Subject: Re: Internal Server Error 500
  Posted: 05/26/2004 at 1:54:36 pm
  By: popzzz

Now the log is full of this crap???

Useless use of a variable in void context at bizmail.cgi line 318.
Useless use of a variable in void context at bizmail.cgi line 320.
Useless use of a variable in void context at bizmail.cgi line 322.
Useless use of a variable in void context at bizmail.cgi line 324.
Name "main::att_content_type" used only once: possible typo at bizmail.cgi line 192.
Name "main::send_email_results" used only once: possible typo at bizmail.cgi line 159.
Name "main::versionnumber" used only once: possible typo at bizmail.cgi line 218.
Name "main::valueform" used only once: possible typo at bizmail.cgi line 310.
Name "main::required_desc" used only once: possible typo at bizmail.cgi line 348.
Name "main::sec" used only once: possible typo at bizmail.cgi line 224.
Name "main::formdvalue2" used only once: possible typo at bizmail.cgi line 319.
Name "main::footer" used only once: possible typo at bizmail.cgi line 219.
Name "main::dayofyear" used only once: possible typo at bizmail.cgi line 224.
Name "main::IsDST" used only once: possible typo at bizmail.cgi line 224.
Name "main::att_format" used only once: possible typo at bizmail.cgi line 187.
Name "main::nameform" used only once: possible typo at bizmail.cgi line 309.
Name "main::reply_subject" used only once: possible typo at bizmail.cgi line 621.
Name "main::dayname" used only once: possible typo at bizmail.cgi line 236.
Name "main::mailprog" used only once: possible typo at bizmail.cgi line 52.
Name "main::PRNT_blankfields" used only once: possible typo at bizmail.cgi line 132.
Name "main::MY_error_page" used only once: possible typo at bizmail.cgi line 123.
Name "main::sortfields" used only once: possible typo at bizmail.cgi line 344.
Name "main::send_attachement" used only once: possible typo at bizmail.cgi line 179.
Use of uninitialized value in split at bizmail.cgi line 344.
Use of uninitialized value in split at bizmail.cgi line 346.
Use of uninitialized value in split at bizmail.cgi line 348.
Use of uninitialized value in string eq at bizmail.cgi line 383.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.

You gotta know what all that means Seth cause I don't???

Seems as tho this couuld be a good script if we can just get beyond the breakers ....



  Subject: Re: Internal Server Error 500
  Posted: 05/26/2004 at 2:07:41 pm
  By: popzzz

BTW, it **is** writing the .dat files - just NOT sending emails as it should ....



  Subject: Re: Internal Server Error 500
  Posted: 05/26/2004 at 2:43:01 pm
  By: popzzz

NOW I get the following????

Useless use of a variable in void context at bizmail.cgi line 318.
Useless use of a variable in void context at bizmail.cgi line 320.
Useless use of a variable in void context at bizmail.cgi line 322.
Useless use of a variable in void context at bizmail.cgi line 324.
Name "main::att_content_type" used only once: possible typo at bizmail.cgi line 192.
Name "main::send_email_results" used only once: possible typo at bizmail.cgi line 159.
Name "main::versionnumber" used only once: possible typo at bizmail.cgi line 218.
Name "main::valueform" used only once: possible typo at bizmail.cgi line 310.
Name "main::required_desc" used only once: possible typo at bizmail.cgi line 348.
Name "main::sec" used only once: possible typo at bizmail.cgi line 224.
Name "main::formdvalue2" used only once: possible typo at bizmail.cgi line 319.
Name "main::footer" used only once: possible typo at bizmail.cgi line 219.
Name "main::dayofyear" used only once: possible typo at bizmail.cgi line 224.
Name "main::IsDST" used only once: possible typo at bizmail.cgi line 224.
Name "main::att_format" used only once: possible typo at bizmail.cgi line 187.
Name "main::nameform" used only once: possible typo at bizmail.cgi line 309.
Name "main::reply_subject" used only once: possible typo at bizmail.cgi line 621.
Name "main::dayname" used only once: possible typo at bizmail.cgi line 236.
Name "main::mailprog" used only once: possible typo at bizmail.cgi line 52.
Name "main::PRNT_blankfields" used only once: possible typo at bizmail.cgi line 132.
Name "main::MY_error_page" used only once: possible typo at bizmail.cgi line 123.
Name "main::sortfields" used only once: possible typo at bizmail.cgi line 344.
Name "main::send_attachement" used only once: possible typo at bizmail.cgi line 179.
Use of uninitialized value in split at bizmail.cgi line 344.
Use of uninitialized value in split at bizmail.cgi line 346.
Use of uninitialized value in split at bizmail.cgi line 348.
Use of uninitialized value in string eq at bizmail.cgi line 383.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in string at bizmail.cgi line 585.
Use of uninitialized value in string at bizmail.cgi line 602.
Can't locate MIME/Lite.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl .) at sendmail.cgi line 79.
BEGIN failed--compilation aborted at sendmail.cgi line 79.
Compilation failed in require at bizmail.cgi line 642.
[Wed May 26 18:04:14 2004] [error] [client 68.18.151.247] Premature end of script headers: /home/virtual/site49/fst/var/www/cgi-bin/formmail/bizmail.cgi

<CUSS>
ARRRGGGGGHHHHhhhhh!!!!!!!!!!
</CUSS>




  Subject: Re: Internal Server Error 500
  Posted: 05/26/2004 at 7:02:54 pm
  By: Seth Knorr

It looks as if you either.

a. do not have the MIME directory on the server inside the cgi-bin with Lite.pm located in this.

OR

b. This file and directory are not set to read-write-executable for all. or 777.

The other posibility is you either don't have the correct path to sendmail/smtp or it is not setup properly on your server.

Seth



  Subject: Re: Internal Server Error 500
  Posted: 05/26/2004 at 9:07:33 pm
  By: popzzz

Copy/paste:
/var/www/cgi-bin/MIME/Lite.pm
perm: MIME dir: 777 drwxrwxrwx
Lite.pm : 777 -rwxrwxrwx

paths to sendmail for a little utility script:
Paths to Sendmail: /usr/sbin/sendmail.sendmail /usr/sbin/sendmail /etc/sendmail.cf /usr/lib/sendmail /usr/share/man/man8/sendmail.8.gz often found in '/usr/sbin/sendmail' or '/usr/lib/sendmail'

FWIW sendmail works fine with other scripts using the same path???

Don't know ....







  Subject: Re: Internal Server Error 500
  Posted: 05/26/2004 at 9:22:31 pm
  By: popzzz

Okay - changed 'sendmail' to smtp and got the form submission email finally but it doesn't send the email to the form submitter???

Now what?

ps - thanks for the help!



  Subject: Re: Internal Server Error 500
  Posted: 05/26/2004 at 9:37:51 pm
  By: popzzz

checked the log and get all these errors now:

Useless use of a variable in void context at bizmail.cgi line 318.
Useless use of a variable in void context at bizmail.cgi line 320.
Useless use of a variable in void context at bizmail.cgi line 322.
Useless use of a variable in void context at bizmail.cgi line 324.
Name "main::att_content_type" used only once: possible typo at bizmail.cgi line 192.
Name "main::send_email_results" used only once: possible typo at bizmail.cgi line 159.
Name "main::cc_to" used only once: possible typo at bizmail.cgi line 587.
Name "main::versionnumber" used only once: possible typo at bizmail.cgi line 218.
Name "main::valueform" used only once: possible typo at bizmail.cgi line 310.
Name "main::required_desc" used only once: possible typo at bizmail.cgi line 348.
Name "main::sec" used only once: possible typo at bizmail.cgi line 224.
Name "main::formdvalue2" used only once: possible typo at bizmail.cgi line 319.
Name "main::footer" used only once: possible typo at bizmail.cgi line 219.
Name "main::dayofyear" used only once: possible typo at bizmail.cgi line 224.
Name "main::IsDST" used only once: possible typo at bizmail.cgi line 224.
Name "main::att_format" used only once: possible typo at bizmail.cgi line 187.
Name "main::nameform" used only once: possible typo at bizmail.cgi line 309.
Name "main::reply_subject" used only once: possible typo at bizmail.cgi line 621.
Name "main::dayname" used only once: possible typo at bizmail.cgi line 236.
Name "main::PRNT_blankfields" used only once: possible typo at bizmail.cgi line 132.
Name "main::MY_error_page" used only once: possible typo at bizmail.cgi line 123.
Name "main::sortfields" used only once: possible typo at bizmail.cgi line 344.
Name "main::smtp_server" used only once: possible typo at bizmail.cgi line 54.
Name "main::send_attachement" used only once: possible typo at bizmail.cgi line 179.
Use of uninitialized value in split at bizmail.cgi line 344.
Use of uninitialized value in split at bizmail.cgi line 346.
Use of uninitialized value in split at bizmail.cgi line 348.
Use of uninitialized value in string eq at bizmail.cgi line 383.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 540.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in substitution (s///) at bizmail.cgi line 560.
Use of uninitialized value in string at bizmail.cgi line 585.
Use of uninitialized value in string at bizmail.cgi line 602.
Use of uninitialized value in concatenation (.) or string at smtp.cgi line 25.
Use of uninitialized value in string eq at smtp.cgi line 134.




  Subject: Re: Internal Server Error 500
  Posted: 05/27/2004 at 4:17:50 am
  By: popzzz

stevenrp - did ou get yours going properly?



  Subject: Re: Internal Server Error 500
  Posted: 05/27/2004 at 6:24:10 am
  By: Seth Knorr

if the form submitter is not getting it it could be a couple of things.

1. Since it is a private server the submitter may be blocked.

2. You are using a false domain as the server name, so they receiving server is not alowing mail.

3. The submitter's email is the same as owners (send_to) or cc_to email.

4. SPAM filters may be blocking it try using Yahoo as the posters email. They are the easiest to get through, and if it goes to the bulk mail folder you know that is a SPAM filter problem.

5. It could be that if your on a windows server, they are not properly formating the from.

Proper format is: "name" <email>
however some windows servers have a problem with this.

So you may want to go to the last line of configuration and you will see:

#----- F R O M N A M E F O R M A T -----#

$from_name_format = "\"$reply_from_name\" <$FINAL_sendto>";

# IF PROBLEM ARISES UNCOMMENT BELOW AND COMMONENT THE $from_name_format ABOVE #

#$from_name_format = "$FINAL_sendto";


MAKE IT LOOK LIKE:

#----- F R O M N A M E F O R M A T -----#

#$from_name_format = "\"$reply_from_name\" <$FINAL_sendto>";

# IF PROBLEM ARISES UNCOMMENT BELOW AND COMMONENT THE $from_name_format ABOVE #

$from_name_format = "$FINAL_sendto";



  Subject: Re: Internal Server Error 500
  Posted: 05/27/2004 at 6:52:12 am
  By: popzzz

Okay - got it all pretty cool finally - I didn't know that I had to add the hidden to the form for sendreply - I assumed that was in the script (where it SHOULD be) and figured it out after cafefully scrutanizing everything over again.

The other problem was one of the forms (testing 2) had the fieldname of "Email" which is a no-no - with all due respect Seth wouldn't it be VERY simple to change the script to be case insensitive?

Anyway seems okay finally ...

Over all these fine details really tripped up a fairly experienced script installer ...

Just kinda seems overly 'fragile' and sensitive.

But got her now so good to go.

One other MPITA is the error log still FILES up with all those crazy errors.

When you think you may have new version?
(that incorporates all these suggestions)

TIA,
popzzz



  Subject: Re: Internal Server Error 500
  Posted: 05/27/2004 at 1:43:48 pm
  By: popzzz

What can we do about all the errors filling up the error log file?

TIA



  Subject: Re: Internal Server Error 500
  Posted: 05/27/2004 at 2:03:16 pm
  By: Seth Knorr

Don't use the -w after the path to perl at the top of the script.

Just use the path to perl like so:
#!/usr/bin/perl


Seth



  Subject: Re: Internal Server Error 500
  Posted: 06/03/2004 at 11:25:43 am
  By: popzzz

GREAT!

Thanks Seth!



Reply To This Topic

Subject
Message  
Username
Password
Due to unrelated post's, you must have an
account to post a message. To Sign Up click here.




Copyright 2000-2010 Seth M. Knorr,
BizMailForm.com Forms Processor, All Rights Reserved