uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Tech Support
       Support Policy
       Knowledge Base
       Reference Sites
       Software Piracy
       Legal Notices
       Privacy Policy
       Reseller Info
       Contact Us
       Site Map
premature end of script headers

Knowledge Base Lobby : uShop Support Conference : CGI Script Related Problems
Aug-14-18 10:27 AM EST
Original Message
premature end of script headers
Author broadway450 on 02-27-2001 at 01:24 (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, 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/ failed for, reason: Premature end of script headers

The server is UNIX and runs perl.5
The script runs from the secure url
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?

Table Of Contents
  RE: premature end of script headers Bill Weiner, 2001-02-27 06:04:23 (1)
            RE: premature end of script headers Bill Weiner, 2001-02-27 06:29:10 (2)
                 Thank You "But" broadway450, 2001-02-27 08:46:59 (3)
                      RE: Thank You "But" Bill Weiner, 2001-02-27 16:28:31 (4)

Messages In This Discussion
         1. RE: premature end of script headers
        Author Bill Weiner on 02-27-2001 at 06:04 (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:

... which looks like you are now... so I'm guessing you already resolved the problem?
                 2. RE: premature end of script headers
                Author Bill Weiner on 02-27-2001 at 06:29 (EST)
Ok, from looking at your other posting at:

I see that your store is located at:

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.


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

QUESTION 1) Upon initially installing the "" 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 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.
                         3. Thank You "But"
                        Author broadway450 on 02-27-2001 at 08:46 (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.
                                 4. RE: Thank You "But"
                                Author Bill Weiner on 02-27-2001 at 16:28 (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.

© 2003 Microburst Technologies, Inc.