If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / Not seeing HTTPS & getting error in browsers?

Not seeing HTTPS & getting error in browsers?

Started by johnnyscience on 1 May 2013, 4:56 AM · Views: 1,632

Results 1 to 13 of 13
1 May 2013, 4:56 AM
#1
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Not seeing HTTPS & getting error in browsers?

I have the SSL cert installed, checked it sslshopper.com & it passed with all green & I also changed the 2 config.php files from false to true (there were 3 total)

But for some reason when I'm browsing the site I don't see https://www. I only see: visionaryscience.net/index.php?main_page=checkout_shipping

Using Firefox, when I manually type in HTTPS://www. it will go there but it turns from a secure lock icon to a triangle with an exclamation point in it in the URL's leftside? And as soon as I click any other links the https://www. goes away completely again.

In chrome I can pull up the following error, any idea what is causing this and how to fix it?

Attachment 12434

1 May 2013, 5:11 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: Not seeing HTTPS & getting error in browsers?

JohnnyScience:

I also changed the 2 config.php files from false to true (there were 3 total)Evidently those changes didn't save or didn't upload successfully to your server. Remember, those files are read-only, so you need to make them writable before you can update their contents.
Until you do that, your links will all be generated as http.

JohnnyScience:

Using Firefox, when I manually type in HTTPS://www. it will go there but it turns from a secure lock icon to a triangle with an exclamation point in it in the URL's leftside?
That's because you're using direct non-https URLs to some assets that are on your page ... such as images or javascript banners or external scripts you load from other sites.
Related article: http://www.zen-cart.com/content.php?185-this-page-contains-both-secure-and-nonsecure-items-%28or-unauthenticated-content-or-connection-partially-encrypted%29

.
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.

1 May 2013, 5:26 AM
#4
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Not seeing HTTPS & getting error in browsers?

DrByte:

Evidently those changes didn't save or didn't upload successfully to your server. Remember, those files are read-only, so you need to make them writable before you can update their contents.
Until you do that, your links will all be generated as http.

Hmm, I downloaded the file through FTP, edited it in DW & then re-uploaded it... that should have made it writable correct?

That's because you're using direct non-https URLs to some assets that are on your page ... such as images or javascript banners or external scripts you load from other sites.
Related article: http://www.zen-cart.com/content.php?185-this-page-contains-both-secure-and-nonsecure-items-%28or-unauthenticated-content-or-connection-partially-encrypted%29

I read this and not quite sure how to fix it yet

There is a banner system, but only on the Main Page?

I right clicked & did view source & searched for src="http:// like the article suggested & nothing comes up?

I'm not quite sure I know what to do here. SSL is all new to me & this is my first time setting it up.

Thanks.

1 May 2013, 5:35 AM
#5
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Not seeing HTTPS & getting error in browsers?

JohnnyScience:

Hmm, I downloaded the file through FTP, edited it in DW & then re-uploaded it... that should have made it writable correct?No.. Wrong!

First get rid of DW and use a proper editor like Notepad++

The file on the website is READ ONLY
Your upload will NOT overwrite it.

You need to change the file on the website to writeable first in your ftp program or cpanel
Then when you upload it will overwrite it.
Then change it back to read only.

1 May 2013, 5:44 AM
#6
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Not seeing HTTPS & getting error in browsers?

Ok so I was able to successfully change them to true by changing permissions to write & then unchecking them when done.

DW seems to get a bad rap, I've been using it for years & I like it. I only use it to edit code though, I use a browser to making visual edits as I go

Now that I've been able to get them to change to True, what is the next step to clear up the permissions issue? Whats the easiest way to find where all of the http are & need to be replaced with https?

1 May 2013, 5:47 AM
#7
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Not seeing HTTPS & getting error in browsers?

Also now the issue seems to be cleared up in Chrome, but Firefox is still showing an error? (I've cleared cache too)

1 May 2013, 5:50 AM
#8
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Not seeing HTTPS & getting error in browsers?

JohnnyScience:

Ok so I was able to successfully change them to true by changing permissions to write & then unchecking them when done.

DW seems to get a bad rap, I've been using it for years & I like it. I only use it to edit code though, I use a browser to making visual edits as I go

Now that I've been able to get them to change to True, what is the next step to clear up the permissions issue? Whats the easiest way to find where all of the http are & need to be replaced with https?

Don't hard code http or https.
Use relative links if possible.

1 May 2013, 5:56 AM
#9
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Not seeing HTTPS & getting error in browsers?

Hmm. I guess I don't understand...

2 May 2013, 2:39 AM
#10
kobra avatar

kobra

Black Belt

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

Re: Not seeing HTTPS & getting error in browsers?

I guess I don't understand...
In your stylesheet.css file you have hardcoded the path to your images as http://
See these

#headerWrapper{background-image:url('http://visionaryscience.net/includes/templates/yorkshire_clean/images/visionaryblankheader.png'); 

h3.leftBoxHeading, h3.rightBoxHeading {background-image: url("http://visionaryscience.net/includes/templates/yorkshire_clean/images/bluestrip.png"

background-image:url("http://visionaryscience.net/includes/templates/yorkshire_clean/images/bluestrip.png"

Where the correct way is

#headerWrapper{background-image: url(../images/visionaryblankheader.png'); 

ZenCart knows what template you are using

Zen-Venom Get Bitten

4 May 2013, 2:56 AM
#11
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Not seeing HTTPS & getting error in browsers?

Ahh ok, so I made the edits as you suggested.

Still seems to have errors though?

There was an additional hard link in the stylesheet.mega_menu.css that I also changed, I couldn't find any other ones? What about the links for the banners?

4 May 2013, 5:00 PM
#12
kobra avatar

kobra

Black Belt

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

Re: Not seeing HTTPS & getting error in browsers?

I am getting a good lock on the login page

Zen-Venom Get Bitten

6 May 2013, 1:00 AM
#13
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Not seeing HTTPS & getting error in browsers?

Beautiful, I am too! (I needed to clear my cache.)

So everything is setup correctly & secure - is there anything else I need to do in regards to this?

Thanks for the help everyone.