Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Images unsecure in SSL


Recommended Posts

I have been working on fitting osCommerce into our web site's template, but every time I go to a secure page I get the ... some things on this page are no secure ... error and I want to know what I'm supposed to so with the images on my page that are unsecure? How do I make that error stop?

Link to comment
Share on other sites



Do you have any images that you have hard coded into the code? I had this problem. The solution was to find images I had coded in myself, and change the path to the secure server.


You really need to post your config file (taking out all passwords and userids) and post it here.


Hope that helps

Link to comment
Share on other sites

Here's my config file.


 osCommerce, Open Source E-Commerce Solutions

 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://linux-amd.jenkinslaw.org'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://linux-amd.jenkinslaw.org'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'linux-amd.jenkinslaw.org');
 define('HTTPS_COOKIE_DOMAIN', 'linux-amd.jenkinslaw.org');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/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/www/jenkins/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

// define our database connection
 define('DB_DATABASE', 'osCommerce');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'


This is just our test server ... but I guess this is what you want to see.


I do have the images hard coded ... so I guess that's the problem.

Link to comment
Share on other sites


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

  • Create New...