uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
CGI Script Error on submit

Knowledge Base Lobby : uShop Support Conference : CGI Script Related Problems
Nov-20-17 08:40 AM EST
Original Message
CGI Script Error on submit
Author Mark on 11-14-2001 at 13:08 (EST)
Here is the error I'm getting upon submitting an order. Please help.

CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:


String found where operator expected at E:WebsitesHOST_HEADER_SITES511046cgi-binushop_cgiscript.pl line 930, near "$discount_type "">n""
(Missing operator before "">n"?)
String found where operator expected at E:WebsitesHOST_HEADER_SITES511046cgi-binushop_cgiscript.pl line 931, near "$discount_table "">n""
(Missing operator before "">n"?)
syntax error at E:WebsitesHOST_HEADER_SITES511046cgi-binushop_cgiscript.pl line 1, near "BODY>"
syntax error at E:WebsitesHOST_HEADER_SITES511046cgi-binushop_cgiscript.pl line 930, near "$discount_type "">n""
syntax error at E:WebsitesHOST_HEADER_SITES511046cgi-binushop_cgiscript.pl line 931, near "$discount_table "">n""
BEGIN not safe after errors--compilation aborted at E:WebsitesHOST_HEADER_SITES511046cgi-binushop_cg

E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: CGI Script Error on submit Joseph Pishgar, 2001-11-14 16:47:50 (1)

Messages In This Discussion
         1. RE: CGI Script Error on submit
        Author Joseph Pishgar on 11-14-2001 at 16:47 (EST)
Hello Mark,

So your getting an error that says:

The specified CGI application misbehaved by not returning a complete set of HTTP headers.

There are several things that may be causing the problem. Are you getting the copyright page when you go to the URL of the script? That is, when you go to the URL of the script on your server, you should see a uShop Copyright Page....similar to when you go to the URL of the script on our server:

http://www.uburst.com/cgi-bin/ushop_cgiscript.pl

Based on the results of this test, there are several routes we can take to troubleshoot the problem. I am going to guess that you get the same "HTTP headers" error that you are getting when you try to place an order....so here are some suggestions

SUGGESTION #1: Just to make sure, have you tried letting the uShop CGI Setup Wizard create a script for you? That is, the CGI Setup Wizard at our reference site:

http://www.uburst.com/uShop/reference2/index.html

will actually generate a CGI script configured for your server along with personalized instructions on how to install it on your server.


SUGGESTION #2: If it is still not working, below is an description/solution of a similar problem....(not quite the same, but just in case....)

As we sometimes help people get the script setup on their server, we did run across this once. The person gave us two paths to Perl on their server:

#!/usr/local/bin/perl5.00502
#!/usr/local/bin/perl

When using #!/usr/local/bin/perl5.00502 for the path to Perl (the first line of the script), we got the following error:

----------
Internal Server Error

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

Please contact the server administrator, webmaster@www59.hway.net 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:
[Sun Jan 24 07:38:41 1999] access to /u/web/bestb7/cgi-local/ushop_cgiscript.pl failed for
208.14.41.52, reason: Premature end of script headers
----------

Then when we changed the path to #!/usr/local/bin/perl, and everything worked fine.

I'm not exactly sure what type of server they were using (since we just FTPed to the server/account that they gave us), but changing that path (I'm guessing to an older version of Perl) worked. Again, we have only ran into this once and the uShop CGI script should have worked with Perl 5.00502 - but I don't know why we got the error.

In anycase, double-check the path to perl that you are using and try using Perl 4(+) if that is an option.

Hope this helps.

Regards,
Joseph Pishgar
Microburst Technologies, Inc.
www.uburst.com
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.