www.uburst.com www.uburst.com

"CGI Error"

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
 
"CGI Error"
Posted by Pell on Mar-31-03 at 09:42 AM (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.

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: CGI Error, Bill Weiner, Apr-01-03, (1)
CGI error, Jon Crowder, Apr-01-03, (2)
RE: CGI error, Bill Weiner, Apr-02-03, (3)
CGI Error, Pell, Apr-03-03, (4)
Changes did not work, Jon, Apr-09-03, (5)
RE: Changes did not work, Bill Weiner, Apr-10-03, (6)
Blat did not work, jon, Apr-11-03, (7)
Using blat, Microburst Support Team, Apr-14-03, (8)
Support, Jon, Apr-15-03, (9)
Blat, Microburst Support Team, Apr-15-03, (11)
CGI error, jon, Apr-15-03, (15)
Blat, Microburst Support Team, Apr-15-03, (16)
BLAT, Jon, Apr-15-03, (17)
RE: Blat did not work, Bill Weiner, Apr-15-03, (13)
CGI error, Jon, Apr-15-03, (10)
Blat, Microburst Support Team, Apr-15-03, (12)
RE: CGI error, Bill Weiner, Apr-15-03, (14)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: CGI Error"
Posted by Bill Weiner on Apr-01-03 at 06:31 AM (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";

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 . "CGI error"
Posted by Jon Crowder on Apr-01-03 at 01:49 PM (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.

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
 
3 . "RE: CGI error"
Posted by Bill Weiner on Apr-02-03 at 06:42 AM (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.

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
 
4 . "CGI Error"
Posted by Pell on Apr-03-03 at 02:40 PM (EST)
Didn't work
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
 
5 . "Changes did not work"
Posted by Jon on Apr-09-03 at 01:33 PM (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.

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
 
6 . "RE: Changes did not work"
Posted by Bill Weiner on Apr-10-03 at 05:36 AM (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!

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
 
7 . "Blat did not work"
Posted by jon on Apr-11-03 at 07:12 AM (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.
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
 
8 . "Using blat"
Posted by Microburst Support Team on Apr-14-03 at 09:35 AM (EST)
We have received your support request and will continue correspondence on this problem through e-mail with you.
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
 
9 . "Support"
Posted by Jon on Apr-15-03 at 05:35 AM (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.
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
 
11 . "Blat"
Posted by Microburst Support Team on Apr-15-03 at 06:08 AM (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.

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
 
15 . "CGI error"
Posted by jon on Apr-15-03 at 07:19 AM (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.


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
 
16 . "Blat"
Posted by Microburst Support Team on Apr-15-03 at 07:31 AM (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...

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
 
17 . "BLAT"
Posted by Jon on Apr-15-03 at 09:14 AM (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.


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
 
13 . "RE: Blat did not work"
Posted by Bill Weiner on Apr-15-03 at 06:42 AM (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\"";

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
 
10 . "CGI error"
Posted by Jon on Apr-15-03 at 05:37 AM (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.
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
 
12 . "Blat"
Posted by Microburst Support Team on Apr-15-03 at 06:09 AM (EST)
Send us the information that we requested from you.

support@uburst.com

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
 
14 . "RE: CGI error"
Posted by Bill Weiner on Apr-15-03 at 06:43 AM (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\"";

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.