HELP - Secure all pages feature

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
meer2005
Captain (CAPT)
Captain (CAPT)
Posts: 245
Joined: Wed Feb 09, 2005 2:00 pm

HELP - Secure all pages feature

Post by meer2005 » Thu Nov 17, 2016 6:44 pm

Every time I change this to secure all pages it converts the site to all SSL, but when you go back in the site url reverts back to http -- the site stays https, but all canonical links are still pointing to http. I was in the middle of the migration when I realized this. Please advise. Using R12 SR1

meer2005
Captain (CAPT)
Captain (CAPT)
Posts: 245
Joined: Wed Feb 09, 2005 2:00 pm

Re: HELP - Secure all pages feature

Post by meer2005 » Thu Nov 17, 2016 7:38 pm

I created a temp fix from here following from here: viewtopic.php?f=65&t=18567

Edit:
Change PageHelper.cs, BindMetaTags:

string objectUrl = storeUri.Scheme + "://" + storeUri.Authority + page.ResolveUrl(catalogObject.NavigateUrl);
to
string objectUrl = "https://" + storeUri.Authority + page.ResolveUrl(catalogObject.NavigateUrl);

However, the Store URL here Administration > Configure > Security > System Settings
will not change or stay at https

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: HELP - Secure all pages feature

Post by Katie » Fri Nov 18, 2016 4:19 am

As far as I know, all the SSL issues were fixed in Gold R12 and patched for Gold R11.

Please make sure you don't have any customizations that might be causing this to happen.

Thanks,
Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

meer2005
Captain (CAPT)
Captain (CAPT)
Posts: 245
Joined: Wed Feb 09, 2005 2:00 pm

Re: HELP - Secure all pages feature

Post by meer2005 » Fri Nov 18, 2016 4:31 am

I'm not aware of any customization we have that would affect this. Bottom line is the Store URL won't change to https, just reverts back. I thought I did a quick test a few days ago after upgrading to R12SR1 and everything looked right. Turned it off, did some migration preparation and when we switched it back on this issue showed up.

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: HELP - Secure all pages feature

Post by Katie » Fri Nov 18, 2016 4:52 am

I have to ask. What is the Store URL on the Configure > Security > System Settings page. It should be https if you have Secure All Pages turned on.

If you try to access the admin side with a secure https connection, does it actually redirect to non-secure? What happens if you try a different browser?
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

meer2005
Captain (CAPT)
Captain (CAPT)
Posts: 245
Joined: Wed Feb 09, 2005 2:00 pm

Re: HELP - Secure all pages feature

Post by meer2005 » Fri Nov 18, 2016 5:04 am

I've attached a picture of my admin right now. Secure all pages is ON and the site is showing up as https and providing 301 redirects from the http versions. I'm not sure how it works in https when the store URL wont change from http, but it is. Being that the store URL reverts back to the http version, I applied the fix above to address the canonical links pointing to the http pages.

Is there something in licensing that only allows for http, making it revert back?

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: HELP - Secure all pages feature

Post by Katie » Fri Nov 18, 2016 6:06 am

There is javascript in this page to automatically change the store URL to https://www...

I don't know why yours is still showing http. This is the reason it keeps reverting back to non-ssl. It needs to be https in the Store URL field.

The licensing does not change how this feature works unless you have a different domain for the SSL.
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

meer2005
Captain (CAPT)
Captain (CAPT)
Posts: 245
Joined: Wed Feb 09, 2005 2:00 pm

Re: HELP - Secure all pages feature

Post by meer2005 » Fri Nov 18, 2016 9:35 am

Any idea how I can get https to stick? My main concern was the canonical link, but I'd imagine the store URL is pulled from there for other purposes as well and it should be correct.

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: HELP - Secure all pages feature

Post by Katie » Fri Nov 18, 2016 10:02 am

I don't know why it wouldn't be working. Can you try a different browser? Can you also try unchecking Secure All pages and rechecking it again?
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

sfeher
Captain (CAPT)
Captain (CAPT)
Posts: 220
Joined: Fri Jun 04, 2004 1:58 pm
Location: Steubenville, Ohio

Re: HELP - Secure all pages feature

Post by sfeher » Fri Oct 13, 2017 3:26 am

Hmmm --
I'm having the same error on this site. No matter what I attempt to do, I cannot get the store to "save" the proper state for enabling SSL on the "whole site".
GoldR12 (build 9168)
Every time I check the box for "Secure All Pages" and then hit "Save", the page hangs.
Chrome shows the following error (see image)..... but unsure why. Scroll all the way down on the image below -- see the actual error reported by Chrome at the bottom of the image.

Post Reply