Page 1 of 2
https Checkout Error
Posted: Sat Sep 29, 2012 11:03 pm
by thebluebus
I've just installed an SSL cert (4-5 hours ago), and made the changes in admin and the config files. It seems to work as its http throughout the shop until you go to checkout where it switches to https however it just shows a popup box with 'error' in. This happens on other https pages such as login and register. I've noticed i also get this when in the admin panel and i go to system settings.
Have i missed a setting somewhere? any help would be great, thanks.

Re: https Checkout Error
Posted: Sun Sep 30, 2012 1:11 am
by ecgod.com
What is the link of your site?
Re: https Checkout Error
Posted: Sun Sep 30, 2012 3:17 am
by thebluebus
Re: https Checkout Error
Posted: Sun Sep 30, 2012 5:06 am
by grgr
Remove this from your template/header and see if the problem goes away.
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
Re: https Checkout Error
Posted: Sun Sep 30, 2012 6:39 am
by thebluebus
nope, error is still there...
Re: https Checkout Error
Posted: Sun Sep 30, 2012 7:22 am
by thebluebus
just tried it on a fresh install, no changes other than SSL enabled, config's changed.....error!
Re: https Checkout Error
Posted: Sun Sep 30, 2012 7:38 am
by thebluebus
ok, i've now changed all the HTTP settings to HTTPS and the whole site is now running https but no errors occur. Any ideas? I don't mind running it fully https but i didn't think this was necessary?
Re: https Checkout Error
Posted: Sun Oct 07, 2012 6:39 am
by Avvici
What exactly "are" your https settings you speak of.
Re: https Checkout Error
Posted: Mon Oct 15, 2012 7:18 am
by 1nkling
I have this same error.
On the checkout page I get the same popup box with 'Error' written in it but if I change the http settings in the config file to https as well then the error no longer appears and all seems to work fine. This means I'm running the whole site on https rather than just the account and checkout pages though.
I see the OP is running their whole site on https to get round this too. Anyone have a solution? It'd be appreciated.
Re: https Checkout Error
Posted: Tue Oct 16, 2012 1:45 am
by 1nkling
enigma1 wrote:You may want to check the customizations of your store. I tried with the latest clean oc version and an SSL I do not see it.
If for example you do a non-ssl ajax call from within a secure page you may see what you described.
Thankyou. I'm not sure if any are I'll have to try and check that out. Are there any particular ways of telling?
Re: https Checkout Error
Posted: Sun Dec 02, 2012 5:04 am
by RobinD
Hi
Did anyone solve this "error" pop up problem? I have just enabled ssl and checked and double checked both config settings.
All seems ok until I go to checkout?!
RobinD
Re: https Checkout Error
Posted: Tue Jul 09, 2013 10:24 pm
by BodgeIT
This seems to be because items in the mini cart have http:// as do footer menu items.
Re: https Checkout Error
Posted: Mon Aug 19, 2013 4:16 am
by agivera
Hi,
I had the same problem. Additionaly on my localhost (with https) it was working ok but on production (with https) it was giving same "error" instantly after starting "checkout" process.
1. First of all - open the chckout page (the one with "error")
2. Open its source and at begining it should have some thing like: "<base href="
http://your-domain.pl/" />
In my case it had "http://" instead of "http
s://" althought page was opened as "https://"
It turned out that OC is using environment variable HTTPS to check if its in SSL mode. But my hosting provider did not had such variable (probably because it was proxied or load balanced) but instead I had HTTP_X_FORWARDED_PROTO.
So in two files:
- admin/controller/common/header.php
- catalog/controller/common/header.php
I had to change:
Code: Select all
if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) {
to
Code: Select all
if (
( isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1')) )
|| ( isset($this->request->server['HTTP_X_FORWARDED_PROTO']) && $this->request->server['HTTP_X_FORWARDED_PROTO'] == 'https' )
) {
and it started to correctly detect https and the evil "error" has gone for ever
Best Regards,
Krzysztof
Re: https Checkout Error
Posted: Fri Sep 06, 2013 4:28 am
by agivera
Same fix has to be applied to:
public_html/admin/controller/common/filemanager.php
otherwise "Image" window in RTF editor will be broken same way.
Best Regards,
Krzysztof
Re: https Checkout Error
Posted: Tue Oct 29, 2013 3:30 pm
by byens
Im not using https, but i have same error in checkout page
After using that code from agivera, it is better now, but stil error box coming up.
Re: https Checkout Error
Posted: Tue Oct 29, 2013 8:47 pm
by Cue4cheap
Interesting.... I just ran across your posting.... I have the same issue:
http://forum.opencart.com/viewtopic.php?f=20&t=112316
It seems like it is when the server is a bit slow and the javascript doesn't complete before you click on something. It doesn't happen for me 100% of the time but more like 45% of the time.
I would love to know of a complete solution but so far I have not found it (even though I have compressed the javascript on my site and it
seemed to be a bit better.
Mike
Re: https Checkout Error
Posted: Wed Oct 30, 2013 12:20 pm
by byens
Cue4cheap wrote:Interesting.... I just ran across your posting.... I have the same issue:
http://forum.opencart.com/viewtopic.php?f=20&t=112316
It seems like it is when the server is a bit slow and the javascript doesn't complete before you click on something. It doesn't happen for me 100% of the time but more like 45% of the time.
I would love to know of a complete solution but so far I have not found it (even though I have compressed the javascript on my site and it
seemed to be a bit better.
Mike
How ? can you show me which post or any tutorial?
Re: https Checkout Error
Posted: Thu Oct 31, 2013 4:53 am
by Cue4cheap
byens wrote:
How ? can you show me which post or any tutorial?
Are you asking how to compress the javascript?
Try one of the ones from a google search:
https://www.google.com/#q=compress+javascript
BUT this is
not the complete solution and we need to find one or I hope someone will find one and let us know.
Mike
Re: https Checkout Error
Posted: Sun Dec 01, 2013 8:16 am
by Cue4cheap
BTW do NOT try and compress the .min.js files you will create more problems. AND my "solution" doesn't seem to hold much hope as I am still getting about the same amount of "error" pop-ups.
Mike
Re: https Checkout Error
Posted: Tue Jul 08, 2014 3:05 pm
by stonerisefarm
Hi people, I just resolved this on ny 1.5.6.4, all https installation. If you have the same situation (definitely possible), have a look at my fix posted just now: viewtopic.php?f=19&t=127815
Regards, Chris.