Zen Cart Logo
Forums / General Questions / Site won't switch into SSL mode - using servage.net hosting

Site won't switch into SSL mode - using servage.net hosting

Locked

Views: 6,602

Results 1 to 20 of 27
This thread is locked. New replies are disabled.
23 Feb 2008, 4:32 PM
#1
badvoc avatar

badvoc

New Zenner

Join Date:
Feb 2008
Posts:
45
Plugin Contributions:
0

Site won't switch into SSL mode - using servage.net hosting

Just installed Zen but I'm getting a red line through my padlock for SSL, I assume that means I've got external links to some things, all I've done is install Zen, a template and a couple of mods and SSL not got any stock in it yet or banners.

Can anyone who understands how SSL works tell me what links are causing the problems and what files they are located in.

If I understand it properly I just need to remove the http:// etc. and internally link it...

if that makes sense to anyone :)

the site is https://secure.gothicmagic.co.uk

thanks in advance to anyone that can help, I've never used SSL before so I'm in the dark :oops:

23 Feb 2008, 4:37 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

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

Re: Site won't switch into SSL mode - using servage.net hosting

Your configure.php files may need attention - there are important configurations in these files you need to set.

there are TWO configure.php files :-

includes/configure.php
admin/includes/configure.php

23 Feb 2008, 4:47 PM
#3
badvoc avatar

badvoc

New Zenner

Join Date:
Feb 2008
Posts:
45
Plugin Contributions:
0

Re: Site won't switch into SSL mode - using servage.net hosting

I checked both those files for any instances of src="http:// last night and didn't find any, perhaps my sleepy eyes have let me down... or is it not just "src=" lines that I need to look at?

Thanks :)

23 Feb 2008, 4:56 PM
#4
badvoc avatar

badvoc

New Zenner

Join Date:
Feb 2008
Posts:
45
Plugin Contributions:
0

Re: Site won't switch into SSL mode - using servage.net hosting

in the config files it's really just the parts like this:

define('HTTP_SERVER', 'http://gothicmagic.co.uk');
define('HTTPS_SERVER', 'https://secure.gothicmagic.co.uk');

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

that need chaning I think, and they are done, SSL is working (perfectly in the admin section) but I'm getting unauthenticated content errors on the shop front

23 Feb 2008, 5:00 PM
#5
schoolboy avatar

schoolboy

Totally Zenned

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

Re: Site won't switch into SSL mode - using servage.net hosting

Badvoc:

I checked both those files for any instances of src="http:// last night and didn't find any, perhaps my sleepy eyes have let me down... or is it not just "src=" lines that I need to look at?

Thanks :)

:huh: Not sure what you tried to do, but these are php files and you need to change some of the the DEFINE settings.

You should be looking for the following:-

// Define the webserver and path parameters
  // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
  // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
  define('HTTP_SERVER', 'http://www.YOUR-DOMAIN-HERE');
  define('HTTPS_SERVER', 'https://YOUR-PATH-TO-SECURE-WEBSERVER-HERE');

  // Use secure webserver for checkout procedure?
  define('ENABLE_SSL', 'true');
23 Feb 2008, 5:08 PM
#6
badvoc avatar

badvoc

New Zenner

Join Date:
Feb 2008
Posts:
45
Plugin Contributions:
0

Re: Site won't switch into SSL mode - using servage.net hosting

I don't need to change those bits mate that's already done, and ssl does exist

23 Feb 2008, 6:44 PM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Site won't switch into SSL mode - using servage.net hosting

The way or place you have this installed is the issue....

The logo is at:

http://gothicmagic.co.uk/includes/templates/lavender/images/logo.gif

The site url and SSL cert is at:

http://secure.gothicmagic.co.uk/

Not sure what you have done here but this is the problem

23 Feb 2008, 6:54 PM
#8
badvoc avatar

badvoc

New Zenner

Join Date:
Feb 2008
Posts:
45
Plugin Contributions:
0

Re: Site won't switch into SSL mode - using servage.net hosting

I just followed the instructions for everything to the letter :)

I don't want the whole site to run in SSL just logins etc. i.e. when the customer has to input info

So all images displayed on the site have to have a secure address? or is it just the logo?

I'm confused lol :)

I installed Zen then the template, then added SSL in that order.

what file is that path in?

23 Feb 2008, 6:57 PM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Site won't switch into SSL mode - using servage.net hosting

re-read my post...

The logo states that it is at gothicmagic.co.uk but your site url loads from secure.gothicmagic.co.uk

Your SSL Cert is issued to secure.gothicmagic.co.uk

It is the

gothicmagic.co.uk
secure.gothicmagic.co.uk

thing that is causing the broken lock

23 Feb 2008, 7:05 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: Site won't switch into SSL mode - using servage.net hosting

Have you cleared your browser cache and cookies?
Do you have a link to a page that is having a particular problem?

23 Feb 2008, 7:14 PM
#11
badvoc avatar

badvoc

New Zenner

Join Date:
Feb 2008
Posts:
45
Plugin Contributions:
0

Re: Site won't switch into SSL mode - using servage.net hosting

DrByte:

Have you cleared your browser cache and cookies?
Do you have a link to a page that is having a particular problem?

everything is working fine in the admin panel SSL is working

if I go to the site http://gothicmagic.co.uk and select login it will go to http://secure.gothicmagic.co.uk (to protect the users input) at that point the SSL padlock appears but has a red line through it.

I'll clear cookies and cache now.

I'm pretty sure it's the logo.gif as after clearing cookies and cache it was an ok padlock until it loaded the logo.gif, I just don't know anything about Zen or SSL, and I'm sure Kobra is right above but I don't understand what I need to do, I'm a bit thick me :)

23 Feb 2008, 7:33 PM
#12
drbyte avatar

drbyte

Sensei

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

Re: Site won't switch into SSL mode - using servage.net hosting

Who is your hosting company?

If it's network solutions, you're out of luck ... they've got a perfectly consistent bad track record in this arena.

23 Feb 2008, 7:34 PM
#13
badvoc avatar

badvoc

New Zenner

Join Date:
Feb 2008
Posts:
45
Plugin Contributions:
0

Re: Site won't switch into SSL mode - using servage.net hosting

servage.net

23 Feb 2008, 7:40 PM
#14
drbyte avatar

drbyte

Sensei

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

Re: Site won't switch into SSL mode - using servage.net hosting

Have you installed any addons that would have changed or customized these files? Or made any manual changes to these files?

  • /includes/init_includes/init_file_db_names.php
  • /includes/init_includes/overrides/init_file_db_names.php
  • /includes/templates/ANY_TEMPLATE/common/html_header.php
23 Feb 2008, 7:44 PM
#15
badvoc avatar

badvoc

New Zenner

Join Date:
Feb 2008
Posts:
45
Plugin Contributions:
0

Re: Site won't switch into SSL mode - using servage.net hosting

I haven't changed any of them manually, I've installed the Lavender template which came with better categories mod

23 Feb 2008, 7:47 PM
#16
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Site won't switch into SSL mode - using servage.net hosting

if I go to the site http://gothicmagic.co.uk and select login it will go to http://secure.gothicmagic.co.uk (to protect the users input) at that point the SSL padlock appears but has a red line through it.
As he is navigating to secure.gothicmagic.co.uk and he has the base install at gothicmagic.co.uk and the logo image there also - he gets the broken lock...

You did not need to move to secure.gothicmagic.co.uk to have this function but as your cert is now issued to it you could move the complete install to secure.gothicmagic.co.uk or get another cert issued to gothicmagic.co.uk or possibly have it re-keyed??

23 Feb 2008, 7:50 PM
#17
drbyte avatar

drbyte

Sensei

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

Re: Site won't switch into SSL mode - using servage.net hosting

No, the problem is that even though the link correctly starts in the browser as
https://secure.gothicmagic.co.uk/index.php?main_page=login
... the cart is unable to accurately detect that the page is served as SSL, and is therefore treating it as non-SSL internally, as evidenced by View Source:```

<base href="http://gothicmagic.co.uk/" /> ```That only happens when either of the two files I mentioned is changed, or if the host is unable to pass on the fact that SSL is active on the given page. If all the files are correct, then it's most likely a hosting problem ... and with your hosting company's track record, you may not have much success twisting their arm to help very much.
23 Feb 2008, 8:01 PM
#18
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Site won't switch into SSL mode - using servage.net hosting

DrByte I see what you are referring to but also click the lock and see:

Connection Partially Encrypted
Parts of the page you are viewing were not encrypted before being transmitted over the Internet.
Information sent over the Internet without encryption can be seen by other people while it is in transit.
Probably more than one issue...

23 Feb 2008, 8:09 PM
#19
badvoc avatar

badvoc

New Zenner

Join Date:
Feb 2008
Posts:
45
Plugin Contributions:
0

Re: Site won't switch into SSL mode - using servage.net hosting

I'm not sure what to do now....

since I haven't put any stock or anything in yet perhaps the easiest route would be to delete and re-install Zen in https://secure.gothicmagic.co.uk

but then I guess that would have to be my shop url which isn't very nice.

But in short it looks like I cocked it up when I bought my SSL cert, it suggested secure in front of my url by default and I just went with it, live and learn I guess.s

23 Feb 2008, 8:16 PM
#20
drbyte avatar

drbyte

Sensei

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

Re: Site won't switch into SSL mode - using servage.net hosting

kobra:

I see what you are referring to but also click the lock and see:

Connection Partially Encrypted
Parts of the page you are viewing were not encrypted before being transmitted over the Internet.
Information sent over the Internet without encryption can be seen by other people while it is in transit.
Probably more than one issue...Right ... the non-encrypted components would be everything that's referenced with a relative path, such as images and stylesheets, since they're all based from the base href when they're not using an absolute URL.

Which means it all still boils down to the server not giving enough info about the fact that the page is running SSL, so Zen Cart cannot pick up on that fact and switch into the proper mode.