Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Not all images displayed in SSL mode


itchyfanny

Recommended Posts

Has anyone come across this problem..

 

When I have shared SSL working correctly (padlock closed) it will not display images from the catalog/images directory in the catalog SSL side, only those that reside in the 'includes/languages/english/images/' directory, (flags, buttons etc.)

 

Also, in the admin side when secured it gives this error and dispays no images..

 

Error: Catalog images directory does not exist: //public_html/catalog/images/

 

I am probably wrong but it looks to me like a path error? I have moved '/' about in the config.php's but to no avail.

 

I have a working store but I also installed a vanilla osC to test again and its still the same..

 

Anyone had this problem and managed to fix it?

 

Any help gratefully recieved.

Link to comment
Share on other sites

We need to see the configure.php file. The double slashes tell a sad story.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Heres my sad config files, I'd love to know why the images do not display correctly, those double slashes look suspect even to a novice like me!

 

The site works with these files as broken padlock but displaying all images.

 

Thanks very much for your help.

 

--------

 

Heres my /include/configure.php

 

// Define the webserver and path parameters

define('HTTP_SERVER', 'http://marrakeshonline.co.uk');

define('HTTPS_SERVER', 'https://elgar.mywebserver.net/~everton');

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

define('HTTP_COOKIE_DOMAIN', 'marrakeshonline.co.uk');

define('HTTPS_COOKIE_DOMAIN', 'elgar.mywebserver.net/~everton');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

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

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

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

define('DIR_WS_ICONS', '/store/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

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

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

 

admin/includes/configure.php

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'http://marrakeshonline.co.uk');

define('HTTP_CATALOG_SERVER', '');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

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

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

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

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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

Link to comment
Share on other sites

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

define('DIR_WS_ICONS', '/store/icons/');

 

You're doubling up here

 

They should be:

 

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

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

 

They're added on to these:

 

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

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

 

so the '/store/' part is duplicated.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

In admin you didn't define these:

 

define('HTTP_CATALOG_SERVER', 'http://marrakeshonline.co.uk');

define('HTTPS_CATALOG_SERVER', 'https://elgar.mywebserver.net/~everton');

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...