Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL set up OR getenv() problem


Guest

Recommended Posts

Hello,

 

Set up a cart and discovered a problem with how it decides it is in SSL or NONSSL in the $request_type field. When I login all the paths to the graphics are broken. Upon looking at html source, the <base> tag does not have the absolute address.

It is supposed to be "<base="https://secure.server.net/ssl.theDomain.org/shopping/"> however it resolves to "<base="/ssl.theDomain.org/shopping/">

When ENABLE_SSL is set to true all the problems start.

 

I cannot understand how the getenv('HTTPS") works as it always appears to set $request_type to NONSSL (line 41 in application_top.php mod). I am really temped to hardcode the <base> tag to get around this problem, but I figure it would effect something else.

 

I have included my config settings as well, since that seems to be a possible problems also.

I'm on osC 2.ms2. Shared SSL cert

 

 

 define('HTTP_SERVER', 'http://pzi.org'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://secure16.worldaxxs.net/ssl.pzi.org'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'http://pzi.org');
 define('HTTPS_COOKIE_DOMAIN', 'https://secure16.worldaxxs.net/ssl.pzi.org');
 define('HTTP_COOKIE_PATH', '/shopping/');
 define('HTTPS_COOKIE_PATH', '/shopping/');
 define('DIR_WS_HTTP_CATALOG', '/shopping/');
 define('DIR_WS_HTTPS_CATALOG', '/shopping/');
 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

Archived

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

×
×
  • Create New...