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 Error

Knowledge Base Lobby : uShop Support Conference : CGI Script Related Problems
Oct-18-17 04:18 PM EST
Original Message
CGI Error
Author Pell on 03-31-2003 at 09:42 (EST)
I get this error when I test sending email:
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:


Diagnostics work great, but when I test the email it returns an error. I've tried changing the IP address to mail server name and visversa.
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: CGI Error Bill Weiner, 2003-04-01 06:31:05 (1)
            CGI error Jon Crowder, 2003-04-01 13:49:34 (2)
                 RE: CGI error Bill Weiner, 2003-04-02 06:42:37 (3)
                      CGI Error Pell, 2003-04-03 14:40:22 (4)
                      Changes did not work Jon, 2003-04-09 13:33:19 (5)
                           RE: Changes did not work Bill Weiner, 2003-04-10 05:36:56 (6)
                                Blat did not work jon, 2003-04-11 07:12:25 (7)
                                     Using blat Microburst Support Team, 2003-04-14 09:35:04 (8)
                                          Support Jon, 2003-04-15 05:35:17 (9)
                                               Blat Microburst Support Team, 2003-04-15 06:08:55 (11)
                                                    CGI error jon, 2003-04-15 07:19:26 (15)
                                                         Blat Microburst Support Team, 2003-04-15 07:31:33 (16)
                                                              BLAT Jon, 2003-04-15 09:14:29 (17)
                                     RE: Blat did not work Bill Weiner, 2003-04-15 06:42:18 (13)
                      CGI error Jon, 2003-04-15 05:37:08 (10)
                           Blat Microburst Support Team, 2003-04-15 06:09:55 (12)
                           RE: CGI error Bill Weiner, 2003-04-15 06:43:41 (14)

Messages In This Discussion
         1. RE: CGI Error
        Author Bill Weiner on 04-01-2003 at 06:31 (EST)
Yes, since it sounds like all of the other functions related to the CGI scripts are working... it does sound like there is a problem with your email configuration.

Question #1: What type of server are you using? (Windows-type or Unix/Linux-type?)

Question #2: What type of email method are you using (as specified in configuration question #8 at the top of the ushop.pl script.)

Until the email configuration problem is resolved, you can disable the email notifications (and confirm that the problem is related to the email configuration) by setting configuration question #8 at the top of the ushop.pl script to:

$email_method = "CUSTOM";
TABLE OF CONTENTS
                 2. CGI error
                Author Jon Crowder on 04-01-2003 at 13:49 (EST)
Q1- using MS Exchange server (Windows Type)

Q2-Sockets with "mail.pell.com" OR IP address

We host our own mail server and do not have a problem getting email daily. Not an issue with our mail server. Tried to use BLAT.exe and that didn't work either.
I use BLAT to email logs, error messages, etc... to me every day and do have a problem there.
The script is not seeing my mail server.
TABLE OF CONTENTS
                         3. RE: CGI error
                        Author Bill Weiner on 04-02-2003 at 06:42 (EST)
You may need to adjust the $AF_INET and $SOCK_STREAM settings that are located near the top of the ushop-lib.pl script. Try changing them from:

$AF_INET = 2;
$SOCK_STREAM = 1;

To:

$AF_INET = 1;
$SOCK_STREAM = 1;

And if that doesn't work, we can work on getting the "BLAT" email option working for you.
TABLE OF CONTENTS
                                 4. CGI Error
                                Author Pell on 04-03-2003 at 14:40 (EST)
Didn't work
TABLE OF CONTENTS
                                 5. Changes did not work
                                Author Jon on 04-09-2003 at 13:33 (EST)
Bill,

Changed $AF_NET = 2 to $AF_NET = 1

That did not work. Switched mailing method to BLAT and dianogtics say it sent an email to the correct address, but didn't get it. When I went to the CMD prompt and used blat, it worked fine.
This is how I send blat:

blat "C:/data/temp4596268.blat" -t jon@pell.com

This works fine from the CMD prompt.
TABLE OF CONTENTS
                                         6. RE: Changes did not work
                                        Author Bill Weiner on 04-10-2003 at 05:36 (EST)
Do you happen to know if you're version of blat supports the "-f" and the -s" option?

When using blat, uShop will basically do a system call which passes the following parameters to blat:

$cmd_line_args = "$tempfile -f $sendfrom -t $sendto -s $messagesubject";

So maybe you could try the following command from your command prompt (using a valid temp file name, of course):

blat "C:/data/temp4596268.blat" -f jon@pell.com -t jon@pell.com -s Order Notification

If necessary, you could try modifying the command line arguments in the script by doing the following:

STEP 1: Make a backup of your ushop-lib.pl script...just in case.

STEP 2: Open your ushop=lib.pl script with any text editor such as WordPad.

STEP 3: Do a search on the following line:

$cmd_line_args = "$tempfile -f $sendfrom -t $sendto -s $messagesubject";

(This is the line the formats the command line arguments for blat.)

STEP 4: Change that line as necessary, such as:

$cmd_line_args = "$tempfile -t $sendto";

STEP 5: Save the script... as TEXT if your editor asks... and try it out!
TABLE OF CONTENTS
                                                 7. Blat did not work
                                                Author jon on 04-11-2003 at 07:12 (EST)
Bill,
Made changes you suggested and it did not work. From the command prompt I can get Blat to work fine. Here's what a I type at the commnad prompt:
blat c:/data/temp123456.blat -t jon@pell.com -s OrderForm and it works fine.
If I put a space in OrderForm (order form) then it will not work.
Blat works fine from command prompt. When I press Email Test inside Diagnostics, it says an email was sent to jon@pell.com, but I never receive it. Blat is not working insde Ushop.
TABLE OF CONTENTS
                                                         8. Using blat
                                                        Author Microburst Support Team on 04-14-2003 at 09:35 (EST)
We have received your support request and will continue correspondence on this problem through e-mail with you.
TABLE OF CONTENTS
                                                                 9. Support
                                                                Author Jon on 04-15-2003 at 05:35 (EST)
We've been working on this problem since March 31 and haven't resolved it yet. You sent an acknowledgement to yet another of my support request yesterday, but we'er no closer to a solution. Is this what you call support?
I think I've shown great patience since Mar 31 looking for a solution to this issue. Let's get this fixed.
TABLE OF CONTENTS
                                                                         11. Blat
                                                                        Author Microburst Support Team on 04-15-2003 at 06:08 (EST)
You were e-mailed specific instructions yesterday afternoon to follow those and tell us what the result was. If you compare the instructions sent yesterday, they were slightly different than the ones previously posted in the forum. This was not a repeat of the exact same information.

The e-mail you received from us yesterday also stated that if what was suggested still did not work, that you should SEND US YOUR SCRIPT (ushop-lib.pl) so that we could see how you are configuring the blat command line args. We also asked you to send us the link to your Control Panel and password to log in. We need these two pieces of information to help you.



TABLE OF CONTENTS
                                                                                 15. CGI error
                                                                                Author jon on 04-15-2003 at 07:19 (EST)
>You were e-mailed specific instructions yesterday afternoon
>to follow those and tell us
>what the result was. If you
>compare the instructions sent yesterday, they
>were slightly different than the ones
>previously posted in the forum. This
>was not a repeat of the
>exact same information.
>The e-mail you received from us yesterday

What email? I did not receive anything or I would have replied. I've been trying to resolve this issue within the forum, but I sent an email yesterday (outside the forum) requesting support. The reply I got back was an automatic reply saying the support request was received and a support #. Inside the forum, it says"We have received your support request and will continue correspondence on this problem through e-mail with you" That's all I received.
Please sent the "slighty different" changes and let me try. If that doesn't work, I'll send the below items.

>also stated that if what was
>suggested still did not work, that
>you should SEND US YOUR SCRIPT
>(ushop-lib.pl) so that we could see
>how you are configuring the blat
>command line args. We also
>asked you to send us the
>link to your Control Panel and
>password to log in. We
>need these two pieces of information
>to help you.


TABLE OF CONTENTS
                                                                                         16. Blat
                                                                                        Author Microburst Support Team on 04-15-2003 at 07:31 (EST)
We emailed you yesterday afternoon at jon@pell.com - it sounds like you might have other problems with your mail server if you didn't even receive that e-mail from us??

We'll resend that e-mail again following this posting, sending it to jon@pell.com...
TABLE OF CONTENTS
                                                                                                 17. BLAT
                                                                                                Author Jon on 04-15-2003 at 09:14 (EST)
>We emailed you yesterday afternoon at jon@pell.com
>- it sounds like you might
>have other problems with your mail
>server if you didn't even receive
>that e-mail from us??

No,No,No, let's don't start that rumor. I received the reply back from the support request and I received C. Edmunds email today. I can BLAT from the cmd line and I receive emails from clients daily. My email works fine. Let's focus on the issue's and not on assumptions.




>We'll resend that e-mail again following this
>posting, sending it to jon@pell.com...

I received it and have replied as requested.


TABLE OF CONTENTS
                                                         13. RE: Blat did not work
                                                        Author Bill Weiner on 04-15-2003 at 06:42 (EST)
It sounds like the version of blat or OS needs to have the subject parameter enclosed in double-quotes if it contains any spaces (otherwise it is treated as two different parameters. To resolve the problem, try any of the following options:

OPTION 1) CHANGE THE SUBJECT
----------------------------------
Through the uShop Control Panel go to "GENERAL SETTINGS - EMAIL NOTIFICATIONS" and change the "Store Subject" and "Customer Subject" accordingly. (ie. Remove the spaces.)

OPTION 2) REMOVE THE SUBJECT
----------------------------------
As described in the instructions of my Apr-10-03 posting above, remove the subject by changing the line:

$cmd_line_args = "$tempfile -f $sendfrom -t $sendto -s $messagesubject";

to just:

$cmd_line_args = "$tempfile -f $sendfrom -t $sendto;

OPTION 3) PUT DOUBLE QUOTES AROUND THE SUBJECT
----------------------------------
Relating to the instructions of my Apr-10-03 posting above, put (escaped) double-quotes around the subject by changing the line:

$cmd_line_args = "$tempfile -f $sendfrom -t $sendto -s $messagesubject";

to:

$cmd_line_args = "$tempfile -f $sendfrom -t $sendto -s "$messagesubject"";

TABLE OF CONTENTS
                                 10. CGI error
                                Author Jon on 04-15-2003 at 05:37 (EST)
This reply was from you two weeks ago. "We" haven't got BLAT or any other mail option to work yet. Let's get this fixed.
TABLE OF CONTENTS
                                         12. Blat
                                        Author Microburst Support Team on 04-15-2003 at 06:09 (EST)
Send us the information that we requested from you.

support@uburst.com
TABLE OF CONTENTS
                                         14. RE: CGI error
                                        Author Bill Weiner on 04-15-2003 at 06:43 (EST)
It sounds like the version of blat or OS needs to have the subject parameter enclosed in double-quotes if it contains any spaces (otherwise it is treated as two different parameters). To resolve the problem, try any of the following options:

OPTION 1) CHANGE THE SUBJECT
----------------------------------
Through the uShop Control Panel go to "GENERAL SETTINGS - EMAIL NOTIFICATIONS" and change the "Store Subject" and "Customer Subject" accordingly. (ie. Remove the spaces.)

OPTION 2) REMOVE THE SUBJECT
----------------------------------
As described in the instructions of my Apr-10-03 posting above, remove the subject by changing the line:

$cmd_line_args = "$tempfile -f $sendfrom -t $sendto -s $messagesubject";

to just:

$cmd_line_args = "$tempfile -f $sendfrom -t $sendto;

OPTION 3) PUT DOUBLE QUOTES AROUND THE SUBJECT
----------------------------------
Relating to the instructions of my Apr-10-03 posting above, put (escaped) double-quotes around the subject by changing the line:

$cmd_line_args = "$tempfile -f $sendfrom -t $sendto -s $messagesubject";

to:

$cmd_line_args = "$tempfile -f $sendfrom -t $sendto -s "$messagesubject"";
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.