CGI Error During Check Out

General ShopSite user discussion
Post Reply
royhink
Posts: 104
Joined: Fri Jul 20, 2007 10:04 am
Location: Petaluma, CA

CGI Error During Check Out

Post by royhink »

I am getting a cgi error page after my customer enters their credit card information that says:

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

The sale cannot be completed. Any thoughts?

Roy
loren_d_c
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere
Contact:

Post by loren_d_c »

1) If you are using a custom shopping cart template, try switching back to one of the default shopping cart templates (in Commerce Setup -> Order System -> Layout Info) and see if that resolves it. If it does, then there is something wrong with your custom template.

2) If you are using an Order API script, try disabling it (remove the script name from the Custom CGI Location field in Merchandising -> Order API) and see if that helps. If it does, then there is a problem with your custom Order API script.

3) If you are using a real-time payment gateway (such as Authorize.net, Payflow Pro, LinkPoint, PayPal Pro direct api, etc), then try switching your store to 'manual' processing (in Commerce Setup -> Payment) and see if that resolves the problem. If it does, then either your payment gateway has a problem, or your settings for your payment gateway are incorrect in some bad way.

4) If your ShopSite is not the latest version (v9.0.2), or not at least the latest maintenance release of whatever version you have (i.e. v8.3.1 for the v8x line, or v7.1.4.1 for the v7x line), then your should upgrade.

-Loren
royhink
Posts: 104
Joined: Fri Jul 20, 2007 10:04 am
Location: Petaluma, CA

Post by royhink »

Hi Loren,

I started with authorize.net. When I set it to manual, the shopping cart completed the transaction, but, of course, did not send anything to authorize.net.

Now, they say that the error message was not generated by them.

Does the store need to be regenerated after changing these settings?

in the meantime, I'm triple checking my authorize.net settings.

Roy
Jim
Site Admin
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Post by Jim »

The store does not need to be regenerated after changing settings for the shopping cart screens.
royhink
Posts: 104
Joined: Fri Jul 20, 2007 10:04 am
Location: Petaluma, CA

Post by royhink »

I believe the culprit is my smtp server settings.

When I tried to send the keys to the downloadable products I purchased as a test, I got an smtp host error.

My IT guys were trying to fix our ftp site, and uninstalled a service pack this afternoon. I'm checking to see if anything has changed.

I don't know where the error message is generated from, but it would be nice to have more information than just "The specified CGI application misbehaved by not returning a complete set of HTTP headers. " Is this cryptic message a gift from Microsoft?

Roy
Jim
Site Admin
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Post by Jim »

That is a typical webserver error message meaning "Something went wrong and your guess is is as good as mine" ;-) not specific to Windows though since Linux and other Unix type systems would give a similar one.

There is a cgi shipped with ShopSite that can help you test mail problems. If you replace the "start.cgi" in your login url with "diagnose.cgi" you will find a diagnostic dump of information about your store. On that screen there is a email test section that you can use to send a test message similar to how ShopSite does it. I will give some error messages that may help pinpoint the mail issue.
royhink
Posts: 104
Joined: Fri Jul 20, 2007 10:04 am
Location: Petaluma, CA

Post by royhink »

I'm getting closer.....

The setting for the outgoing smtp server somehow was changed. On the host page, it looks like it is hard coded somewhere during the install.

Can you direct me to the correct file that indicates the outgoing smtp server?

Thanks.

Roy
Jim
Site Admin
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Post by Jim »

It will be in a file called <storeid>.aa in the shopsite cgi directory. In Linux and other Unix type systems this would be in the directory typically named ss but might be bo. In windows it would be in the directory typically named sc. Note that the <storeid> part of the name is the login name you use to sign in to your store.

If you happen to be at a host that has a separate login to a control panel (Bizland, Endurance international etc) instead of logging in directly to ShopSite you would need to have them make the change in what ever location they put the file.
royhink
Posts: 104
Joined: Fri Jul 20, 2007 10:04 am
Location: Petaluma, CA

Post by royhink »

Well, I'm surprised.

I've modified the .aa file and still get an error

Unable to open a socket connection to the SMTP host: [smtp.att.yahoo.com]
Could not resolve remote host name; Socket error code: 11004

Any thoughts?
loren_d_c
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere
Contact:

Post by loren_d_c »

Could not resolve remote host name
My bet would be a DNS/nameserver issue on your server. Note that you can specify an IP address instead of a hostname in the smtp_host setting.

Also note that ShopSite does not do SMTP authentication (login), so if your SMTP host requires authentication before it will accept the mail for sending, then it will not work with ShopSite. So it generally works best with local SMTP servers that are configured to only relay mail from local hosts without authentication.

-Loren
napforce
Posts: 2
Joined: Thu Oct 15, 2009 10:06 am
Location: San Diego, CA

I checked all the steps you mentioned but I didn,t work

Post by napforce »

Can someone help me I having this error, I tried these four steps and still has this error (I have tried in both enviroments live server and sandbox) .
This is what I have in smtp_host: mail-fwd
I am using paypal web pro
1. It's not a custom template
2. It's not an Order API
3. I change to manual and it didn't work
4. The version I am using is 9.0.4

Thanks in advance
loren_d_c wrote:1) If you are using a custom shopping cart template, try switching back to one of the default shopping cart templates (in Commerce Setup -> Order System -> Layout Info) and see if that resolves it. If it does, then there is something wrong with your custom template.

2) If you are using an Order API script, try disabling it (remove the script name from the Custom CGI Location field in Merchandising -> Order API) and see if that helps. If it does, then there is a problem with your custom Order API script.

3) If you are using a real-time payment gateway (such as Authorize.net, Payflow Pro, LinkPoint, PayPal Pro direct api, etc), then try switching your store to 'manual' processing (in Commerce Setup -> Payment) and see if that resolves the problem. If it does, then either your payment gateway has a problem, or your settings for your payment gateway are incorrect in some bad way.

4) If your ShopSite is not the latest version (v9.0.2), or not at least the latest maintenance release of whatever version you have (i.e. v8.3.1 for the v8x line, or v7.1.4.1 for the v7x line), then your should upgrade.

-Loren
Joe :)
napforce
Posts: 2
Joined: Thu Oct 15, 2009 10:06 am
Location: San Diego, CA

Re: problem solved, but question...

Post by napforce »

I found the problem it was cause by fedex shipping setting I just set to not shipping carriers. But my question is how can I use paypal and fedex integration?
napforce wrote:Can someone help me I having this error, I tried these four steps and still has this error (I have tried in both enviroments live server and sandbox) .
This is what I have in smtp_host: mail-fwd
I am using paypal web pro
1. It's not a custom template
2. It's not an Order API
3. I change to manual and it didn't work
4. The version I am using is 9.0.4

Thanks in advance
Joe :)
Post Reply