Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Basic Configuration / SSL Not Working Correctly

SSL Not Working Correctly

Started by debbiegibbons on 11 Apr 2012, 5:26 PM · Views: 1,606

Results 1 to 9 of 9
11 Apr 2012, 5:26 PM
#1
debbiegibbons avatar

debbiegibbons

New Zenner

Join Date:
Jan 2012
Posts:
8
Plugin Contributions:
0

SSL Not Working Correctly

Hi all,

I am hoping some kind person can help me with the SSL problems I face on my site!

Site is papercraftkits.com

The SSL certificate has been installed by my host but for some reason my site is only giving me a partial encryption, I know the SSL is working as my admin gives me the green padlock. I have checked my config files which are below

This is my includes/configure file

// 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://papercraftkits.com');
define('HTTPS_SERVER', 'https://papercraftkits.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', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

and this is my admin/includes/configure

  • URL's for your site will be built via:
  • HTTP_SERVER plus DIR_WS_ADMIN or
    
  • HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
    
  • HTTP_SERVER plus DIR_WS_CATALOG or
    
  • HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
    
  • ...depending on your system configuration settings
  • If you desire your entire admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
    */
    define('HTTP_SERVER', 'http://papercraftkits.com');
    define('HTTPS_SERVER', 'https://papercraftkits.com');
    define('HTTP_CATALOG_SERVER', 'http://papercraftkits.com');
    define('HTTPS_CATALOG_SERVER', 'https://papercraftkits.com');

// secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'true');

Checkout, Login or any of the pages secure!

Can someone please take a look and point me in the right direction - I am prepared to pay for some help.

Thanks in advance
Debbie

11 Apr 2012, 5:40 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: SSL Not Working Correctly

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Apr 2012, 5:56 PM
#3
debbiegibbons avatar

debbiegibbons

New Zenner

Join Date:
Jan 2012
Posts:
8
Plugin Contributions:
0

Re: SSL Not Working Correctly

Thanks DrByte, very useful document however i am guessing it is because of the template I am using and I have no idea where to begin :no:

I am prepared to pay if someone could please help me?

11 Apr 2012, 11:19 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: SSL Not Working Correctly

Things look fine to me...

Zencart will only put the site into SSL (https) when SSL is needed.

SSL is needed ONLY when sensitive information needs to be transmitted (login, register, checkout).

At all other times, SSL is "dormant".

SSL can slow a site down, and as it is only needed when data is being TRANSMITTED over the internet, it can be switched off when not needed... ensuring that your site is not unnecessarily slowed down.

20 years a Zencart User

12 Apr 2012, 7:12 AM
#5
debbiegibbons avatar

debbiegibbons

New Zenner

Join Date:
Jan 2012
Posts:
8
Plugin Contributions:
0

Re: SSL Not Working Correctly

Thanks Schoolboy!

I sat last night and went through all the files used for my template and changed all HTTP to HTTPS and then it seemed to work.

"SSL is needed ONLY when sensitive information needs to be transmitted (login, register, checkout).

At all other times, SSL is "dormant".

SSL can slow a site down, and as it is only needed when data is being TRANSMITTED over the internet, it can be switched off when not needed... ensuring that your site is not unnecessarily slowed down."

I see the green https on all my pages does this mean I am slowing the site down? Or is that correct?

Thanks
Debbie

12 Apr 2012, 1:42 PM
#6
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: SSL Not Working Correctly

If SSL is configured on your server properly (talk to your host) and zencart is operating normally, then SSL will work ONLY when it is necessary.

For you to go into code files and hack them to FORCE unnecessary behaviour is not very wise. Unless you are knowledgeable and experienced in the FUNCTIONS implied by certain HTTP calls, you could actually being doing damage to zencart's operations.

If the template itself is badly designed (and many are), then that is a different issue, and you need to address your concerns with the person/company that built/sold the template.

When I went to your site, SSL appeared to be working as it is supposed to, so your tinkering is likely to have been in vain. I would (if I were you) restore everything to what it was before you attacked the code. Just restore the backup copies you made of each file before you did the edits... You do have backups... ?

20 years a Zencart User

12 Apr 2012, 3:15 PM
#7
debbiegibbons avatar

debbiegibbons

New Zenner

Join Date:
Jan 2012
Posts:
8
Plugin Contributions:
0

Re: SSL Not Working Correctly

Unfortunately I know very little about Zen Cart and with having recently installed a new template I was stuck!!

If the SSL appears to be working correctly then my messing was purely luck but it wasn't until I edited these files could I get the SSL to work correctly at all so seems a bad template!

I have backups of the files but fingers crossed I wont need them :smile:

Thank you very much for your help.
Debbie

13 Apr 2012, 11:18 AM
#8
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: SSL Not Working Correctly

The way to test for possible template issues is to REVERT to the CLASSIC TEMPLATE, and see if the site behaves the same way as it does uning a CUSTOM template.

(This is why "classic" should NEVER be altered or modified).

If your site behaves normally when using CLASSIC, then you can be pretty sure your problems are being caused by any customised template files.

If your site behaves THE SAME when using CLASSIC, then you probably have issues NOT related to custom templating.

20 years a Zencart User

13 Apr 2012, 11:39 AM
#9
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: SSL Not Working Correctly

And further... you should not use a faulty template... If the template is producing errors in this area, it's likely there are others that may not be so obvious.

20 years a Zencart User