Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL not working in catalog - Breaks CSS - Does not turn on


Guest

Recommended Posts

I am using osCommerce Online Merchant v2.3.3 and have installed a new EV SSL Cert for the site. The website itself appears to be functioning properly and Godaddy (who I bought the cert from) confirms that it is installed. I have it on a dedicated IP and have made the suggested changes in /(storepath)/includes/configure.php and /(storepath)/admin/includes/configure.php to turn on the SSL and verify that the path name of the links is the same as the cert. However, when I try to go into the store, the CSS breaks and I get a trashy looking site (in Firefox) and the HTTPS does not work.

 

I think I read somewhere that the SSL only works when you check out, so I installed my new First Data API and used it to checkout and when I got to the page with the Credit Card Number field, it was not in SSL. So, it's not turning on when it should and if I manually try to go to the same page with https:// it breaks the CSS and destroys the look of the site.

 

Looking for any help I can get. Thanks!

 

Working link: https://3dprintersolutions.us

 

Non-working link: https://3dprintersolutions.us/store/

Note: In some browsers, it loads right, but the SSL does not work.

 

Carl

Link to comment
Share on other sites

@@cp3inc

 

Only customer and payment pages are coded for SSL use. You should NOT be accessing your site using https:// The pages will switch to secure mode at the appropriate points. Also, your page is improperly coded, which causes some of the issues. Further, check your configure.php files. Either the URL's are www.3dprintersolutions.us or they are .3dprintersolutions.us but you can't use both. Ensure the cookie settings are correct as well.

 

 

 

Chris

Link to comment
Share on other sites

@@cp3inc

 

Only customer and payment pages are coded for SSL use. You should NOT be accessing your site using https:// The pages will switch to secure mode at the appropriate points. Also, your page is improperly coded, which causes some of the issues. Further, check your configure.php files. Either the URL's are www.3dprintersolutions.us or they are .3dprintersolutions.us but you can't use both. Ensure the cookie settings are correct as well.

 

Chris

 

Thanks, Chris. That's what I thought. But mine is not working that way. When you go to the site and try to go to the payment page, it does not switch. I have all the urls set to NOT have the www. on them in the configure.php files. I'm not sure how to check the cookie settings, though.

 

Carl

Link to comment
Share on other sites

So, for an update here:

 

1) SSL is installed properly

2) I have had it checked by GoDaddy to see

3) I have the site on it's own dedicated IP

4) The site works fine and when you get to checkout or Credit card entry, the site does NOT switch to SSL.

5) I have changed the settings in both configure.php files.

6) I have the secure seal on every page

7) I'm really confused as to why this won't work.

 

Thanks,

 

Carl

Link to comment
Share on other sites

Post both of the configure files here, less the database details at the bottom. I expect somewhere you have them wrong. You should also post the web url that was supplied for the ssl certificate.

REMEMBER BACKUP, BACKUP AND BACKUP

Link to comment
Share on other sites

5) I have changed the settings in both configure.php files.

 

I suggest you may have made this change, but not uploaded the changed file to overwrite the one sans the https settings.

 

Or that you have not made this change.

 

One way or another, the change you say you made does not exist.

Link to comment
Share on other sites

Check that the permissions of your configure files are not 444 as then you may not be able to save the changes made - I had this problem and didnt notice the failed transfers.

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Link to comment
Share on other sites

Thanks for the suggestions. Here are my configure.php files. These were copied from the server, so I'm sure my changes were made. The cert was issued for 3dprintersolutions.us, not www.3dprintersolutions.us.

 

In posting these, I notice that in the first one, the word true is not in quotes, in the admin version it is. Which is correct? And would this be the problem?

 

 

/includes/configure.php

 

define('HTTP_SERVER', 'http://3dprintersolutions.us');

define('HTTPS_SERVER', 'http://3dprintersolutions.us');

define('ENABLE_SSL', true);

define('HTTP_COOKIE_DOMAIN', '3dprintersolutions.us');

define('HTTPS_COOKIE_DOMAIN', '3dprintersolutions.us');

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_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/threed/public_html/store');

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

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

 

 

/admin/configure.php

 

?php

define('HTTP_SERVER', 'http://3dprintersolutions.us');

define('HTTP_CATALOG_SERVER', 'http://3dprintersolutions.us');

define('HTTPS_CATALOG_SERVER', 'https://3dprintersolutions.us');

define('ENABLE_SSL_CATALOG', 'true');

define('DIR_FS_DOCUMENT_ROOT', '/home/threed/public_html/store');

define('DIR_WS_ADMIN', '/store/admin/');

define('DIR_FS_ADMIN', '/home/threed/public_html/store/admin/');

define('DIR_WS_CATALOG', '/store/');

define('DIR_FS_CATALOG', '/home/threed/public_html/store/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

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

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

Link to comment
Share on other sites

try in includes/configure.php

 

 define('HTTP_SERVER', 'http://3dprintersolutions.us');
 define('HTTPS_SERVER', 'https://3dprintersolutions.us');

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Link to comment
Share on other sites

Well, as you can imagine, I would have sworn I had changed that to https, but that apparently was the oversight. It must have been a combination of the file not uploading and missing it due to working on a couple of different computers while editing. THANKS TO ALL for your help. It now works!

 

Carl

Link to comment
Share on other sites

  • 4 months later...

Guy's I have read this over and over and I am getting no results. 
 
When my page is in the HTTPS, my CSS is not picking up, all my CONFIG files are coded correctly 
 
this one is in my /includes/

 

  define('HTTP_SERVER', 'http://dailydrivenmotoring.com');
  define('HTTPS_SERVER', 'https://dailydrivenmotoring.com');
  define('ENABLE_SSL', true);
  define('HTTP_COOKIE_DOMAIN', '');
  define('HTTPS_COOKIE_DOMAIN', '');
  define('HTTP_COOKIE_PATH', '/');
  define('HTTPS_COOKIE_PATH', '/');
  define('DIR_WS_HTTP_CATALOG', '/');
  define('DIR_WS_HTTPS_CATALOG', '/');
  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_INCLUDES', 'includes/');
  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/');
 
and this one on my admin/includes
 
  define('HTTP_SERVER', 'http://dailydrivenmotoring.com');
  define('HTTP_CATALOG_SERVER', 'http://dailydrivenmotoring.com');
  define('HTTPS_CATALOG_SERVER', 'https://dailydrivenmotoring.com');
  define('ENABLE_SSL_CATALOG', 'true');
  define('DIR_FS_DOCUMENT_ROOT', '/home/webguy77/public_html/');
  define('DIR_WS_ADMIN', '/admin/');
  define('DIR_FS_ADMIN', '/home/webguy77/public_html/admin/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_FS_CATALOG', '/home/webguy77/public_html/');
  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
  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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
  define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
  define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
  define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
  define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

when you are in the pages that require the SSL, the CSS for my templates is not working 100%. could I be missing something? 

 

Thanks 

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...