Post by thebluebus » Sat Sep 29, 2012 11:03 pm

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.

Image

New member

Posts

Joined
Sun Jul 15, 2012 6:09 pm

Post by ecgod.com » Sun Sep 30, 2012 1:11 am

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


User avatar
Active Member

Posts

Joined
Wed Sep 05, 2012 8:36 pm

Post by thebluebus » Sun Sep 30, 2012 3:17 am

this page errors, as does the checkout

https://www.oakshampers.com/_devnoindex ... t/register

New member

Posts

Joined
Sun Jul 15, 2012 6:09 pm

Post by grgr » Sun Sep 30, 2012 5:06 am

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>

-
Image Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by thebluebus » Sun Sep 30, 2012 6:39 am

nope, error is still there...

New member

Posts

Joined
Sun Jul 15, 2012 6:09 pm

Post by thebluebus » Sun Sep 30, 2012 7:22 am

just tried it on a fresh install, no changes other than SSL enabled, config's changed.....error!

New member

Posts

Joined
Sun Jul 15, 2012 6:09 pm

Post by thebluebus » Sun Sep 30, 2012 7:38 am

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?

New member

Posts

Joined
Sun Jul 15, 2012 6:09 pm

Post by Avvici » Sun Oct 07, 2012 6:39 am

What exactly "are" your https settings you speak of.

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by 1nkling » Mon Oct 15, 2012 7:18 am

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.

Newbie

Posts

Joined
Sun Oct 23, 2011 9:54 pm

Post by 1nkling » Tue Oct 16, 2012 1:45 am

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?

Newbie

Posts

Joined
Sun Oct 23, 2011 9:54 pm

Post by RobinD » Sun Dec 02, 2012 5:04 am

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

New member

Posts

Joined
Sun Dec 02, 2012 5:01 am

Post by BodgeIT » Tue Jul 09, 2013 10:24 pm

This seems to be because items in the mini cart have http:// as do footer menu items.

Newbie

Posts

Joined
Tue Jul 09, 2013 10:22 pm

Post by agivera » Mon Aug 19, 2013 4:16 am

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:

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

Newbie

Posts

Joined
Mon Aug 19, 2013 4:04 am

Post by agivera » Fri Sep 06, 2013 4:28 am

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

Newbie

Posts

Joined
Mon Aug 19, 2013 4:04 am

Post by byens » Tue Oct 29, 2013 3:30 pm

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.

Selling Kristik - Jasa Foto Aura - Kapas Vapor - supplier baju anak -


Active Member

Posts

Joined
Sat Dec 11, 2010 12:29 pm
Location - Surabaya

Post by Cue4cheap » Tue Oct 29, 2013 8:47 pm

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

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by byens » Wed Oct 30, 2013 12:20 pm

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?

Selling Kristik - Jasa Foto Aura - Kapas Vapor - supplier baju anak -


Active Member

Posts

Joined
Sat Dec 11, 2010 12:29 pm
Location - Surabaya

Post by Cue4cheap » Thu Oct 31, 2013 4:53 am

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

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by Cue4cheap » Sun Dec 01, 2013 8:16 am

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

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by stonerisefarm » Tue Jul 08, 2014 3:05 pm

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.

Newbie

Posts

Joined
Tue Nov 16, 2010 10:44 am
Who is online

Users browsing this forum: No registered users and 122 guests