Forums / Templates, Stylesheets, Page Layout / Images not working once page is secure

Images not working once page is secure

Locked

Views: 1,617

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
30 Aug 2006, 5:04 PM
#1
mlfelton avatar

mlfelton

New Zenner

Join Date:
Aug 2006
Posts:
10
Plugin Contributions:
0

Images not working once page is secure

Hi, I've got my site set up to my satisfaction, and I decided to get my own Secure Certificate and that is in place, but when you go the checkout, all the box images, header images and basically all the pretty stuff just up and disappears and my text is almost impossible to read, etc...

My secure certificate is for .mimknits.com and not for https://www.mimknits.com, so it has been suggested to me that the problem arises from the page linking to these images using the full URL (http://www.mimknits.com/images/....) instead of linking through subdirectories (/images/...) However, I can't find any instances of the images being linked directly with the full URL. Everything seems to be referenced using subdirectories only.

I have followed the directions given on the FAQ for enabling SSL (http://www.zen-cart.com/forum/faq.php?s=&do=search&q=ssl&match=all&titlesonly=0) and changed the webserver and path parameters to be mimknits.com instead of https://www.mimknits.com.

Any ideas?

30 Aug 2006, 5:40 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Images not working once page is secure

In the /includes/configure.php you are using:
www.domain_name.com and domain_name.com

You need these to match your secure certificate ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

30 Aug 2006, 6:08 PM
#3
mlfelton avatar

mlfelton

New Zenner

Join Date:
Aug 2006
Posts:
10
Plugin Contributions:
0

Re: Images not working once page is secure

Where specifically does that need to be changed because I just checked both admin/includes/configure.php and includes/configure.php again and they're BOTH using mimknits.com and NOT https://www.mimknits.com (and I even changed https://www.yourdomain.com to yourdomain.com in the instructions as well just for good measure) in the php files. The checkout pages STILL look as they should.

Is there somewhere else that I'm missing it? Is there another configure.php file I need to be changing things in?

30 Aug 2006, 6:45 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Images not working once page is secure

I believe your secure certificate uses the www ... so your HTTP and HTTPS need to also use that ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

30 Aug 2006, 6:47 PM
#5
mlfelton avatar

mlfelton

New Zenner

Join Date:
Aug 2006
Posts:
10
Plugin Contributions:
0

Re: Images not working once page is secure

No, my server admin (who I got the certificate through) specifically told me that my cert DOESN'T use the www.

30 Aug 2006, 7:11 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Images not working once page is secure

Could you post, from the server, your file:
/includes/configure.php

without the username and password?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

30 Aug 2006, 7:40 PM
#7
mlfelton avatar

mlfelton

New Zenner

Join Date:
Aug 2006
Posts:
10
Plugin Contributions:
0

Re: Images not working once page is secure

OK, here it is:

<?php /** * * @package Configuration Settings * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ // Define the webserver and path parameters // HTTP_SERVER is your Main webserver: eg, <http://yourdomain.com> // HTTPS_SERVER is your Secure webserver: eg, <https://yourdomain.com> define('HTTP_SERVER', 'http://mimknits.com'); define('HTTPS_SERVER', 'https://mimknits.com'); // Use secure webserver for checkout procedure? define('ENABLE_SSL', 'true'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_CATALOG', '/shop/'); define('DIR_WS_HTTPS_CATALOG', '/shop/'); define('DIR_WS_IMAGES', 'images/'); 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', DIR_WS_CATALOG . 'pub/'); define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/'); define('DIR_WS_PHPBB', '/'); // * DIR_FS_* = Filesystem directories (local/physical) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_CATALOG', '/home/mimknits/public_html/shop/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/'); define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', ''); define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty define('DB_SERVER_USERNAME', 'EDITED OUT'); define('DB_SERVER_PASSWORD', 'EDITED OUT'); define('DB_DATABASE', 'mimknits_shop'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db' // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'none'); define('DIR_FS_SQL_CACHE', '/home/mimknits/public_html/shop/cache'); ?>
30 Aug 2006, 8:13 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Images not working once page is secure

Do you have something blocking hot links to your images that may be configured wrong?

This should be in your CPanel ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

30 Aug 2006, 8:27 PM
#9
mlfelton avatar

mlfelton

New Zenner

Join Date:
Aug 2006
Posts:
10
Plugin Contributions:
0

Re: Images not working once page is secure

ohoho!!! You're so smart, you smarty pants you! I turned off hotlink protection and voila! It works :)

ETA OK, now I have just added my https: url to the allowed hotlink addresses, and it works while still having hotlink protection on.

Thanks!
Miriam

2 Sep 2006, 4:11 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Images not working once page is secure

You are most welcome ... thanks for the update on the solution ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!