Zen Cart Logo
Forums / Installing on a Windows Server / ZC pages look screwed up after ssl setup

ZC pages look screwed up after ssl setup

Views: 2,801

Results 1 to 16 of 16
21 Aug 2014, 3:55 PM
#1
raphael avatar

raphael

New Zenner

Join Date:
Jan 2011
Posts:
47
Plugin Contributions:
0

ZC pages look screwed up after ssl setup

Hi this is a new install of zc 1.5. After install of ssl my pages look really screwed-up (see attachments) when viewing them securely. Thus when I view them without using ssl they look fine (thats the second attachment) I'm hosted on godaddy and this was working perfectly before on the same host.

21 Aug 2014, 4:36 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,085
Plugin Contributions:
56

Re: ZC pages look screwed up after ssl setup

What, if any, plugins do you have installed?

21 Aug 2014, 5:18 PM
#3
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: ZC pages look screwed up after ssl setup

Are all website assets viewable via HTTPS? Are some of the items coming up as "mixed" content and being blocked by the browser? Any changes made to the website (including changes made by the hosting provider)?

21 Aug 2014, 6:46 PM
#4
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: ZC pages look screwed up after ssl setup

raphael:

Hi this is a new install of zc 1.5. After install of ssl my pages look really screwed-up (see attachments) when viewing them securely. Thus when I view them without using ssl they look fine (thats the second attachment) I'm hosted on godaddy and this was working perfectly before on the same host.

This happens when Zen Cart can't find the template files. Check your configure.php site address. Maybe a typo or a syntax error. View the page source to see where the 'messed up' page is trying to load the ZC files from.

21 Aug 2014, 7:33 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,085
Plugin Contributions:
56

Re: ZC pages look screwed up after ssl setup

Are you, by any chance, using GoDaddy's shared-SSL or do you have a dedicated SSL certificate?

22 Aug 2014, 12:41 AM
#6
raphael avatar

raphael

New Zenner

Join Date:
Jan 2011
Posts:
47
Plugin Contributions:
0

Re: ZC pages look screwed up after ssl setup

lat9:

Are you, by any chance, using GoDaddy's shared-SSL or do you have a dedicated SSL certificate?

Dedicated....

22 Aug 2014, 12:46 AM
#7
raphael avatar

raphael

New Zenner

Join Date:
Jan 2011
Posts:
47
Plugin Contributions:
0

Re: ZC pages look screwed up after ssl setup

lhungil:

Are all website assets viewable via HTTPS? Are some of the items coming up as "mixed" content and being blocked by the browser? Any changes made to the website (including changes made by the hosting provider)?

yes I'm, getting the "Do you want to show unsecured content question/dialogue" if I click yes and I can see where some of my images are are not being referenced via https. The question is how do I fix this..... this is a real PITA as I just want the thing to work....

22 Aug 2014, 12:47 AM
#8
raphael avatar

raphael

New Zenner

Join Date:
Jan 2011
Posts:
47
Plugin Contributions:
0

Re: ZC pages look screwed up after ssl setup

lat9:

What, if any, plugins do you have installed?

No plugins yet. but eventually will install Stripe....

22 Aug 2014, 12:50 AM
#9
raphael avatar

raphael

New Zenner

Join Date:
Jan 2011
Posts:
47
Plugin Contributions:
0

Re: ZC pages look screwed up after ssl setup

lhungil:

Are all website assets viewable via HTTPS? Are some of the items coming up as "mixed" content and being blocked by the browser? Any changes made to the website (including changes made by the hosting provider)?

I think this is what the problem is..As the ones that are not showing up are the ones not being referenced via https... How do I get them all to be referenced via https...?

22 Aug 2014, 1:00 AM
#10
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: ZC pages look screwed up after ssl setup

If you can provide a link to your site it would help us find the issue,

Just curious have you made any changes to the stylesheet recently

22 Aug 2014, 1:24 AM
#11
raphael avatar

raphael

New Zenner

Join Date:
Jan 2011
Posts:
47
Plugin Contributions:
0

Re: ZC pages look screwed up after ssl setup

nigelt74:

If you can provide a link to your site it would help us find the issue,

Just curious have you made any changes to the stylesheet recently

nope... tried to install stripe unsuccessful but but that about it.. and the issue was happening before the attempted stripe install..... https://www.thekeywestsoapfactory.com........

22 Aug 2014, 1:41 AM
#12
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: ZC pages look screwed up after ssl setup

by adding /zencart to the end of your url, i found the site

is it possible you could post the contents of your includes/config file obviously remove database password, name and user

Make sure you download it from the server.

22 Aug 2014, 1:58 AM
#13
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: ZC pages look screwed up after ssl setup

The reason i am asking for the above is

That when i type in an ssl link for your site, then check the page source, The Base ref is http not https as would be expected

22 Aug 2014, 3:01 AM
#14
raphael avatar

raphael

New Zenner

Join Date:
Jan 2011
Posts:
47
Plugin Contributions:
0

Re: ZC pages look screwed up after ssl setup

nigelt74:

The reason i am asking for the above is

That when i type in an ssl link for your site, then check the page source, The Base ref is http not https as would be expected

<?php /** * dist-configure.php * * @package Configuration Settings circa 1.5.2 * @copyright Copyright 2003-2012 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version GIT: $Id: Author: DrByte Wed Nov 6 20:54:59 2013 -0500 Modified in v1.5.2 $ * @private */ // Define the webserver and path parameters // HTTP_SERVER is your Main webserver: eg-http://www.yourdomain.com // HTTPS_SERVER is your Secure webserver: eg-https://www.yourdomain.com define('HTTP_SERVER', 'http://www.thekeywestsoapfactory.com'); define('HTTPS_SERVER', 'http://www.thekeywestsoapfactory.com'); // Use secure webserver for checkout procedure? define('ENABLE_SSL', 'false'); // 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', '/zencart/'); define('DIR_WS_HTTPS_CATALOG', '/zencart/'); 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/'); // * 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/trinityherbals/public_html/zencart/'); //the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash define('DIR_FS_LOGS', DIR_FS_CATALOG . '/logs'); 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', 'pkrz_'); // prefix for database table names -- preferred to be left empty define('DB_CHARSET', 'utf8'); define('DB_SERVER', ''); define('DB_SERVER_USERNAME', ''); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', ''); // 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', 'file'); define('DIR_FS_SQL_CACHE', DIR_FS_CATALOG.'cache');
22 Aug 2014, 3:03 AM
#15
raphael avatar

raphael

New Zenner

Join Date:
Jan 2011
Posts:
47
Plugin Contributions:
0

Re: ZC pages look screwed up after ssl setup

I do see the obvious problem here.. but I know I change those settings 2 days ago when I the ssl certificate went live... I'll edit it again right now and post back...

22 Aug 2014, 3:22 AM
#16
raphael avatar

raphael

New Zenner

Join Date:
Jan 2011
Posts:
47
Plugin Contributions:
0

Re: ZC pages look screwed up after ssl setup

raphael:

I do see the obvious problem here.. but I know I change those settings 2 days ago when I the ssl certificate went live... I'll edit it again right now and post back...

Yup.. is was the ssl settings in my configure.php file (they had default settings)... I re-edited it and the issue has gone.. thanks for you help.... now if I could just get some help installing strip then I'm home free. You can fined my stripe post in the Addon Payment Modules section http://www.zen-cart.com/showthread.php?201999-Stripe-com-payment-integration-module/page8