Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Some images on https pages not showing


Guest

Recommended Posts

The site in question is http://www.morningmistmetalarts.com (can also be gotten to via http://morningmistmetalarts.com).

 

All looks fine on the http pages; however, if you click on the "log yourself in" or "create an account" link, you will notice that not all images are loading on the page. Furthermore, if you click to reload that same page, even more images will appear broken, including the GeoTrust logo on the right hand side of the page.

 

My configuration files are coded thus:

 

application_top.php

// set the type of request (secure or not)
 $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';

// set php_self in the local scope
 if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];

 if ($request_type == 'NONSSL') {
define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG);
 } else {
define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG);
 }

 

I ran the little myenv.php script and got the "on" response to the SSL status and the SSL is on port 443, as expected.

 

includes/configure.php

  define('HTTP_SERVER', 'http://morningmistmetalarts.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://secure.morningmistmetalarts.com'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'morningmistmetalarts.com');
 define('HTTPS_COOKIE_DOMAIN', 'secure.morningmistmetalarts.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/');

 

admin/includes/configure.php

  define('HTTP_SERVER', 'http://www.morningmistmetalarts.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.morningmistmetalarts.com');
 define('HTTPS_CATALOG_SERVER', 'https://secure.morningmistmetalarts.com');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/mmmart5x/public_html'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/home/mmmart5x/public_html/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/mmmart5x/public_html/'); // absolute path required
 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/');

 

I have looked in the files on the server under secure.morningmistmetalarts.com, they're all there, in all the same places as for the non-SSL area. I am about at my wit's end, as I've checked other posts and I am not sure I am catching on to what the problem is here.

 

Please advise.

Link to comment
Share on other sites

the images are linking to http://morningmistmetalarts.com/images/tab...und_account.gif

 

which is not secure

 

are you sure the images are there?

 

just a thought

 

regards

 

Yes, they are. I've checked via ftp and the image files are all there. The image you reference above is also found under https://secure.morningmistmetalarts.com/ima...und_account.gif, but the link isn't pointing to that one. How do I fix that?

Link to comment
Share on other sites

Yes, they are. I've checked via ftp and the image files are all there. The image you reference above is also found under https://secure.morningmistmetalarts.com/ima...und_account.gif, but the link isn't pointing to that one. How do I fix that?

 

I'm still trying to determine how to get the thing to point to the images that are under https://secure.morningmistmetalarts.com/

 

I hope someone can help me with this - thanks in advance!

Link to comment
Share on other sites

Do you have an option in your cpanel to disallow hotlinking?

 

This could prevent the images from being displayed properly, becuase it thinks the https is a different domain trying to hitlink your images.

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

Do you have an option in your cpanel to disallow hotlinking?

 

This could prevent the images from being displayed properly, becuase it thinks the https is a different domain trying to hitlink your images.

 

That was it!!! I disabled hotlinking and now everything's showing up.

 

I WISH I had thought of that myself. Thank you SO much!!

Link to comment
Share on other sites

<FLEX>

 

:D

-------------------------------------------------------------------------------------------------------------------------

NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit.

If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...