Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

checkout_success.php then an error


RichardP

Recommended Posts

Everything works OK until the last continue button. Under SSL mode the url is sec.serve.com/xxx.com/catalog/. Without SSL the url is www.xxx.com/catalog/.

 

Clicking the last 'continue' button causes the url to change to sec.serve.com/catalog/index.php?action=notify&notify........ which is a page that doesn't exist.

 

What might be the solution?

 

Below is part of the config.php file in catalog/includes/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.xxx.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://sec.serve.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.xxx.com');

define('HTTPS_COOKIE_DOMAIN', 'sec.serve.com');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/xxx.com/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/xxx.com/catalog/');

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', '/home/virtual/site40/fst/var/www/html/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Link to comment
Share on other sites

Everything works OK until the last continue button. Under SSL mode the url is sec.serve.com/xxx.com/catalog/. Without SSL the url is www.xxx.com/catalog/.  

 

Clicking the last 'continue' button causes the url to change to sec.serve.com/catalog/index.php?action=notify&notify........ which is a page that doesn't exist.

 

What might be the solution?

 

I'm thinking that my problem is related to the way that I'm storing cookies. Could someone please see if the code posted below might be causing the problem? I think what is happening is that the checkout_success.php page shouldn't show the https_server as the base url in the page header. When the continue button is activated the default.php page should be generated from the http_server. Shouldn't the cookie path be to the MySql database?

 

Below is part of the config.php file in catalog/includes/ showing the cookie paths.

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

 define('HTTP_SERVER', 'http://www.xxx.com'); // eg, http://localhost - should not be empty for productive servers

 define('HTTPS_SERVER', 'https://sec.serve.com'); // eg, https://localhost - should not be empty for productive servers

 define('ENABLE_SSL', true); // secure webserver for checkout procedure?

 define('HTTP_COOKIE_DOMAIN', 'www.xxx.com');

 define('HTTPS_COOKIE_DOMAIN', 'sec.serve.com');

 define('HTTP_COOKIE_PATH', '/catalog/');

 define('HTTPS_COOKIE_PATH', '/xxx.com/catalog/');

 define('DIR_WS_HTTP_CATALOG', '/catalog/');

 define('DIR_WS_HTTPS_CATALOG', '/xxx.com/catalog/');

 

Link to comment
Share on other sites

Everything works OK until the last continue button. Under SSL mode the url is sec.serve.com/xxx.com/catalog/. Without SSL the url is www.xxx.com/catalog/.

 

Clicking the last 'continue' button causes the url to change to sec.serve.com/catalog/index.php?action=notify&notify........ which is a page that doesn't exist.

 

Why doesn't the index.php page exist? It looks to me like you have mixed versions - a quick workaround may be to copy your default.php and rename it index.php

Link to comment
Share on other sites

when i went to check out, even tho i was logged in, i got shot back to the login page. here is my config file. note that i am using shared ssl and my host is infinology.com.

 

hope this helps.

 

/ Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://ticketthing.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://ticketthing.infinology.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'ticketthing.com');

define('HTTPS_COOKIE_DOMAIN', 'infinology.com');

define('HTTP_COOKIE_PATH', '/6thatpenn/catalog/');

define('HTTPS_COOKIE_PATH', '/6thatpenn/catalog/');

define('DIR_WS_HTTP_CATALOG', '/6thatpenn/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/6thatpenn/catalog/');

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/');

Link to comment
Share on other sites

Why doesn't the index.php page exist?

The index.php page exists in the catalog folder. The catalog folder resides at http://www.xxx.com/.

When using the host's secure facility for transferring encrypted data the url changes to https://sec.serve.com/xxx.com/catalog/

 

For some reason the host server, running php v.4.3.1, that I'm using doesn't like the url =&osCsid=1b58-------------695]https://sec.serve.com/xxx.com/catalog/index...------------695 being the url that is generated by https://sec.serve.com/xxx.com/catalog/check...------------695.

 

The server is happy with =&osCsid=1b58-------------695]http://www.xxx.com/catalog/index.php?actio...------------695 but that's not the url that is being generated by checkout_success.php.

 

The server actually changes the url in the IE address bar to =&osCsid=1b58-------------695]https://sec.serve.com/catalog/index.php?act...------------695 which, as I stated, is a url that does not exist. For some reason the server will not accept the url. I've also discovered another situation where the server will not accept a url and that is when logging on as a returning customer.

 

In both instances the correct address is reported in the page headers but the server changes the url to one that does not exist. It is completely illogical but that is what appears to be happening. In the second situation explained above the login can be forced to proceed by inserting 'xxx.com/' into the url in the address bar but in the first situation described above, the server refuses to accept the ammended url.

Link to comment
Share on other sites

Change to
define('HTTPS_SERVER', 'https://sec.serve.com/xxx.com');

Also need to change catalog, etc. appropriately.

 

Hth,

Matt

Yes, that does help. Obvious really.<g>

// Define the webserver and path parameters 

// * DIR_FS_* = Filesystem directories (local/physical) 

// * DIR_WS_* = Webserver directories (virtual/URL) 

 define('HTTP_SERVER', 'http://www.xxx.com'); // eg, http://localhost - should not be empty for productive servers 

 define('HTTPS_SERVER', 'https://sec.serve.com/xxx.com'); // eg, https://localhost - should not be empty for productive servers 

 define('ENABLE_SSL', true); // secure webserver for checkout procedure? 

 define('HTTP_COOKIE_DOMAIN', 'www.xxx.com'); 

 define('HTTPS_COOKIE_DOMAIN', 'sec.serve.com/xxx.com'); 

 define('HTTP_COOKIE_PATH', '/catalog/'); 

 define('HTTPS_COOKIE_PATH', '/catalog/'); 

 define('DIR_WS_HTTP_CATALOG', '/catalog/'); 

 define('DIR_WS_HTTPS_CATALOG', '/catalog/');

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...