PDA

View Full Version : Proxy Error in osCommerce Checkout



zestgourmet
08-03-2004, 12:50 PM
I use osCommerce for the following website: www.zestgourmet.com. Occasionally during the checkout process I get the following error...




Proxy Error
The proxy server received an invalid response from an upstream server.

The proxy server could not handle the request GET /zestgourmet/store/checkout_success.php.

Reason: Document contains no data

--------------------------------------------------------------------------------

Apache/1.3.27 Server at ssl4.westserver.net Port 443


It only happens on the secure pages at checkout (e.g. shipping, credit card, and confirmation pages). It is totally random as to which page will get the error, or if the error happens at all. However, it happens frequently enough that I'm losing customers when they get the error. The strange thing, is that if you get the error and refresh your screen it fixes the problem. Anyone encounter this problem with osCommerce and WestHost? Any ideas what might be causing it? Any help or advice is greatly appreciated! Thanks!

jalal
08-03-2004, 04:12 PM
Never had this error, but it sounds like the SSL server at Westhost is timing out.
I would open a support request with them and ask them to look at it.

As it is intermittent it is hard to debug, but they may have received similar support requests from others and by putting them together sort out what the problem is.

HTH

zestgourmet
08-03-2004, 04:52 PM
Thanks for responding... I'll check with support.

I'm wondering if it really is timing out, because the proxy error comes up in about two seconds? I've never encountered this error before so I have no idea what it means.

jalal
08-04-2004, 01:14 AM
Hmm, still guessing, but an empty document could mean a set of corrupted HTTP headers being returned... and is it a local proxy that reports this, or your ISP's?

Anyway, I think its something for support...

zestgourmet
08-06-2004, 09:55 AM
I'm a newbie so I'm not sure what you mean by corrupted http header, and how can I tell if it is a local proxy or not? I have contacted westhost support, but they told me I should find the answer on the oscommerce forums. I couldn't find the answer in the forums there.

I'm not sure if this helps but here is my configure.php file...


define('HTTP_SERVER', 'http://www.zestgourmet.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://ssl4.westserver.net/zestgourmet'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'www.zestgourmet.com');
define('HTTPS_COOKIE_DOMAIN', '');
define('HTTP_COOKIE_PATH', '/store/');
define('HTTPS_COOKIE_PATH', '/store/');
define('DIR_WS_HTTP_CATALOG', '/store/');
define('DIR_WS_HTTPS_CATALOG', '/store/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
define('DB_SERVER_USERNAME', ********);
define('DB_SERVER_PASSWORD', ******);
define('DB_DATABASE', ********);
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

jalal
08-06-2004, 10:11 AM
Is it always the same file that creates the problem?

The fact that it is message from a server that cannot handle a GET request leads me to believe it is not something to do with osCommerce... BUT, if it is the same file each time, that is suspicious!

:)

(PS shouldn't use '*'s for passwords, to easily guessed ;) )

zestgourmet
08-06-2004, 01:02 PM
It's not just one file that it happens to. It happens to all of my checkout pages (checkout_shipping.php, checkout_payment.php, checkout_confirmation.php, etc.) on the secure server (https://ssl4.westserver.net). But, it only happens on those pages intermitently... sometimes you can go all the way through checkout without the proxy error.

PS Thank you for your advice on this matter!

zestgourmet
08-12-2004, 11:21 AM
I still haven't found a solution for this. However, I just came across this thread that was interesting....

http://www.gossamer-threads.com/forum/Gossamer_Forum_C7/Products_C7/Discussion_F22/Proxy_Error:_Document_contains_no_data_P232722/

I checked my error logs and I'm getting the same error...


[Thu Aug 12 09:57:20 2004] [notice] child pid 21912 exit signal Segmentation fault (11)