Page 1 of 1

[SOLVED] Checkout and SSL Problems

Posted: Fri Mar 04, 2016 8:41 pm
by WayneOB
Hello All,

I am currently running OC 2.0.2.0 and since enabling SSL (which is required by Google Shopping) I am having several problems within the checkout page and fa images - depending on fixes I try to apply.

For the record; the SSL Certificate is working fine on the server and I have modified both admin and website configs with https

Code: Select all

// HTTPS
define('HTTPS_SERVER', 'https://inevitable.co.uk/');
define('HTTPS_IMAGE', 'https://inevitable.co.uk/image/');
...and also enabled use ssl in admin server settings.

Everything seemed to work fine until I went to checkout to test. Here I noticed that the checkout is not loading https as base url, although it should be. I Googled the problem and there seems to be lots of variations of the issues, but none seemed to help me so far.

Things I have tried;
Adding 's' to

Code: Select all

// HTTP
define('HTTP_SERVER', 'http://www.inevitable.co.uk/');
to try force https.

This came with additional problems;
Script Error;
Image
The errors in Google Chrome console are;
Image

Also, there seems to be missing fa icons/images throughout site;
Image

There were some suggestions in forums that adding the following to the .htaccess worked for some people

Code: Select all

#no non-ssl access
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{QUERY_STRING} checkout|account
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
and

Code: Select all

# Require SSL for sensitive areas
RewriteCond %{HTTPS} off
RewriteCond %{QUERY_STRING} checkout|account [NC]
RewriteCond %{QUERY_STRING} !checkout/cart/update [NC]
RewriteRule (.*) https://www.inevitable.co.uk%{REQUEST_URI} [R]
I have also tried adding this to top of htaccess;

Code: Select all

Header set Access-Control-Allow-Origin "*"
...and even renaming .htaccess.txt to .htaccess.

All seemed to throw out there own problems with either a combination of links http and some https or script errors. All preventing me to place an order; when I click the checkout button after completing form it does nothing. :(

Also, I have noticed that when SSL is turned off in admin/settings the checkout page loads;
Image

However, when SSL is turned on loads the cart page, not the checkout page;
Image

It is as if ssl is disabling certain parts of the page?

Hopefully, there is someone here that has had similar problems and/or may be able to assist me with these problems. I have been chiseling away with bugs, errors and template related problems now for over a week and I am starting to tire with it :crazy:

My thoughts are that the page is being blocked due to the console errors?
If I can fix them the checkout page will load?

Thanks in advance
Wayne

Re: SSL Problems

Posted: Fri Mar 04, 2016 9:08 pm
by Burt65
Can't help you with SSL but your last two pictures the first is the Checkout but the second is the Cart. They are two separate pages... Not suppose to look alike.

Re: SSL Problems

Posted: Fri Mar 04, 2016 9:31 pm
by WayneOB
Burt65 wrote:Can't help you with SSL but your last two pictures the first is the Checkout but the second is the Cart. They are two separate pages... Not suppose to look alike.
Hi Burt65,

Yep, it does not load the checkout page and goes to cart :(

I am baffled by it :-\

Ahhh... I failed to explain this in my OP... I will edit now.

Thx

Re: Checkout and SSL Problems

Posted: Sat Mar 05, 2016 3:32 am
by WayneOB
My BAD!

The error is right there in front of me;

Code: Select all

// HTTPS
define('HTTPS_SERVER', 'https://inevitable.co.uk/');
define('HTTPS_IMAGE', 'https://inevitable.co.uk/image/');
no www.

Working.

Re: [SOLVED] Checkout and SSL Problems

Posted: Sat Mar 05, 2016 3:35 am
by cyclops12
Doh!! ;D

At least you found it and its working