www.uburst.com www.uburst.com

"premature end of script headers"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

CGI Script Related Problems
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"premature end of script headers"
Posted by broadway450 on Feb-27-01 at 01:24 AM (EST)
here is the error message I get when trying to "continue" when placing an order.

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@bigbiz.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.


There was also some additional information available about the error:
[Mon Feb 26 21:02:14 2001] access to /www/mountaincreekgardens/html/cgi-bin/ushop.pl failed for 166.82.121.200, reason: Premature end of script headers

The server is UNIX and runs perl.5
The script runs from the secure url
https://www.bigbiz.com/mountaincreekgardens.com/cgi-bin/ushop.pl
The test cgi works everything works until I try to place an order. I get to where it says "Continue" or "Back" I hit continue and get the error above.
What I don't understand is that I got it to work 1 time then came back the next day and this is what I get.
Any suggestions?

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: premature end of script headers, Bill Weiner, Feb-27-01, (1)
RE: premature end of script headers, Bill Weiner, Feb-27-01, (2)
Thank You "But", broadway450, Feb-27-01, (3)
RE: Thank You "But", Bill Weiner, Feb-27-01, (4)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: premature end of script headers"
Posted by Bill Weiner on Feb-27-01 at 06:04 AM (EST)
A "premature end of script header" error is usually caused by the script being transferred to your server in BINARY transfer mode instead of ASCII transfer mode. Try transferring the script to your server again... and be sure to use ASCII transfer mode.

You should then be able to successfully get the uShop Login screen by going directly to the URL of the script on your server:

https://www.bigbiz.com/mountaincreekgardens.com/cgi-bin/ushop.pl

... which looks like you are now... so I'm guessing you already resolved the problem?

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "RE: premature end of script headers"
Posted by Bill Weiner on Feb-27-01 at 06:29 AM (EST)
Ok, from looking at your other posting at:

http://www.uburst.com/dcforum/ushp_general_purpose/183.html

I see that your store is located at:

http://www.mountaincreekgardens.com/store/html/english_urn_planters.htm

So I went ahead and tried that out.... and noticed that you are still getting "Server Error" upon pressing your order button. So the scenerio is:

- You do successfully get the uShop Login screen when going to the URL of the script on your server.

- But you get a "Server Error" during the first step of the order process.

In that case, I would say the problem is either:

- A problem with your data directory.

or

- A problem with the format of your "order_template.html" file.

QUESTION 1) Upon initially installing the "ushop.pl" script on your server, were you able to successfully set/save the "GENERAL SETTINGS"? If not, try configuring those "GENERAL SETTINGS" via the control panel and see if you get any errors.

QUESTION 2) Did you make any modification to the "order_template.html" file? If so, then something in your template may be causing a problem. As a test, try using the standard "order_template.html" file that came with uShop and see if that resolves the problem. If it does, then that is a good indication that something in your modified template is causing a problem. Double-check that and if you don't see the problem, send it to me at support@uburst.com and I will take a look at it for you.

QUESTION 3) When transferring your "order_template.html" file to your server, did you transfer it in ASCII transfer mode? If not, then try retransferring it to your server in ASCII transfer mode and see if that resolves the problem.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
3 . "Thank You "But""
Posted by broadway450 on Feb-27-01 at 08:46 AM (EST)
That's where the problem is. But now how do i change the state that is taxed on the order form from FL to NC without messing things up again?
That was the only change I made to the html on the order template. I may have uploaded it in the wrong mode! I'll try the modified version again using The suggested mode.
Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
4 . "RE: Thank You "But""
Posted by Bill Weiner on Feb-27-01 at 04:28 PM (EST)
If uploading the template in ASCII mode does not resolve the problem... then it may be something that your HTML editor is doing to the HTML template. (Some HTML editors really add a bunch of garbage to the page). So you may want to try using a regular text editor to edit the "order_template.html" page.

And if that doesn't resolve the problem, go ahead and send me your "order_template.html" page and I will take a look at it.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.