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.
Have i missed a setting somewhere? any help would be great, thanks.
What is the link of your site?
Please click here to donate us if my solutions help.
ECGOD Development Center
http://www.ecgod.com
sale@ecgod.com
Robert
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>
<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>
-
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS
just tried it on a fresh install, no changes other than SSL enabled, config's changed.....error!
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?
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.
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.
Thankyou. I'm not sure if any are I'll have to try and check that out. Are there any particular ways of telling?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.
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 "https://" 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:
to
and it started to correctly detect https and the evil "error" has gone for ever
Best Regards,
Krzysztof
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 "https://" 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'))) {
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' )
) {
Best Regards,
Krzysztof
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.
After using that code from agivera, it is better now, but stil error box coming up.
Selling Kristik - Jasa Foto Aura - Kapas Vapor - supplier baju anak -
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
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
cue4cheap not cheap quality
How ? can you show me which post or any tutorial?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
Selling Kristik - Jasa Foto Aura - Kapas Vapor - supplier baju anak -
Are you asking how to compress the javascript?byens wrote:
How ? can you show me which post or any tutorial?
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
cue4cheap not cheap quality
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.
Regards, Chris.
Who is online
Users browsing this forum: No registered users and 122 guests