Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PLEASE HELP!


mwatch

Recommended Posts

If you access the https portion of the online cart you will see that the images are broken. I have followed all the steps in the configure.php forums and I have enabled https in both the root and admin configure.php files. All domains point to the correct https listing. However, I still get broken images and lost all of my styles and fonts. I have been searching on here for about 3 hours and I just seriously NEED HELP! Here is the url:

 

https://www.militarywatch.com/cart/catalog/index.php

Link to comment
Share on other sites

Why is SSL turned on for the homepage?

 

I even tried changing the URL in my web browser from https to http and it automatically changed back to https. Like I'm being forced to enter your site in https mode only...and yes, all of your images are broken.

 

That should not be happening. The only web pages in your site that 'need' to be secured are those where the buyers send or exchange information with your website.

 

I expect your catalog>includes>configure.php needs some work.

 

To give you an example of a site that has SSL...this is what the config file should look like:

 

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://www.yourwebsite.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.yourwebsite.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.yourwebsite.com');
 define('HTTPS_COOKIE_DOMAIN', 'www.yourwebsite.com');
 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_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/yourusername/public_html/nameofsubfolderifyouhaveone/');
 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 NULL for productive servers
 define('DB_SERVER_USERNAME', 'yourusername_nameofdatabase');
 define('DB_SERVER_PASSWORD', 'XXXXXX');
 define('DB_DATABASE', 'yourusername_nameofdatabase');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

Link to comment
Share on other sites

Why is SSL turned on for the homepage?

 

I even tried changing the URL in my web browser from https to http and it automatically changed back to https. Like I'm being forced to enter your site in https mode only...and yes, all of your images are broken.

 

That should not be happening. The only web pages in your site that 'need' to be secured are those where the buyers send or exchange information with your website.

 

I expect your catalog>includes>configure.php needs some work.

 

To give you an example of a site that has SSL...this is what the config file should look like:

 

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://www.yourwebsite.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.yourwebsite.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.yourwebsite.com');
 define('HTTPS_COOKIE_DOMAIN', 'www.yourwebsite.com');
 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_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/yourusername/public_html/nameofsubfolderifyouhaveone/');
 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 NULL for productive servers
 define('DB_SERVER_USERNAME', 'yourusername_nameofdatabase');
 define('DB_SERVER_PASSWORD', 'XXXXXX');
 define('DB_DATABASE', 'yourusername_nameofdatabase');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

That is what my config file looks like! In both the root and the admin configure.php files. I am forcing an https on all pages by writing an htaccess file that sets a global setting on the site. This way there is no mistake of someone accessing an http page during the secure checkout process. I can also enable redirects on certain pages using javascript but I wouldn't want to do that on the php secure checkout location. I have even changed my define('DIR_WS_IMAGES', 'images/' to reference the full path of the https location but I only get some of the images back. The boxes, styles and font formats are still gone. Any suggestions?

Link to comment
Share on other sites

That is what my config file looks like! In both the root and the admin configure.php files. I am forcing an https on all pages by writing an htaccess file that sets a global setting on the site. This way there is no mistake of someone accessing an http page during the secure checkout process. I can also enable redirects on certain pages using javascript but I wouldn't want to do that on the php secure checkout location. I have even changed my define('DIR_WS_IMAGES', 'images/' to reference the full path of the https location but I only get some of the images back. The boxes, styles and font formats are still gone. Any suggestions?

 

Here is what I have so far in the configure.php file...By the way...I disabled the htaccess file on the site so I do not "force" the https at this time. However...What do I need to do to make the https appear in the shopping cart area?? What am I missing?

 

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

define('HTTPS_SERVER', 'https://militarywatch.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.militarywatch.com');

define('HTTPS_COOKIE_DOMAIN', 'www.militarywatch.com');

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

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

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

define('DIR_WS_HTTPS_CATALOG', '/cart/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/content/a/z/a/azacm/html/cart/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

Here is what I have so far in the configure.php file...By the way...I disabled the htaccess file on the site so I do not "force" the https at this time. However...What do I need to do to make the https appear in the shopping cart area?? What am I missing?

 

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

define('HTTPS_SERVER', 'https://militarywatch.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.militarywatch.com');

define('HTTPS_COOKIE_DOMAIN', 'www.militarywatch.com');

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

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

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

define('DIR_WS_HTTPS_CATALOG', '/cart/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/content/a/z/a/azacm/html/cart/catalog/');

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

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

 

I GOT IT!!!! I think I was "trying to hard" in this case. Once you have the proper settings in there...the system does the rest!! I feel completely stupid at this point. I was trying to force the https without realizing that the system will handle it!! My bad. Thank you for the help. I am all set now.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...