[SOLVED] Checkout and SSL Problems
Posted: Fri Mar 04, 2016 8:41 pm
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
...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 to try force https.
This came with additional problems;
Script Error;

The errors in Google Chrome console are;

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

There were some suggestions in forums that adding the following to the .htaccess worked for some people
and
I have also tried adding this to top of htaccess;
...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;

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

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
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
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/');
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/');
This came with additional problems;
Script Error;

The errors in Google Chrome console are;

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

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}
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]
Code: Select all
Header set Access-Control-Allow-Origin "*"
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;

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

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

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