Page 1 of 1

Https Mixed content error

Posted: Thu Mar 17, 2016 7:50 pm
by Saj
I have edited the config folder for both the open cart root config file also the admin config file on defining the HTTPS Server with my web address. I've enabled SSL on the open cart admin settings. I get an error which shows

Mixed Content: The page at 'https://mydomain.co.uk/' was loaded over a secure connection, but contains a form which targets an insecure endpoint 'http://mydomain.co.uk/index.php?route=c ... y/currency'. This endpoint should be made available over a secure connection.

also if I try accessing my website admin panel using HTTPS I also get this error

Mixed Content: The page at 'https://mydomain.co.uk/admin/' was loaded over a secure connection, but contains a form which targets an insecure endpoint 'http://mydomain.co.uk/admin/index.php?r ... mmon/login'. This endpoint should be made available over a secure connection.

Hope someone can help me. Thank You :) ;)

Re: Https Mixed content error

Posted: Thu Mar 17, 2016 7:53 pm
by budgetneon
If this is 2.2.0.0:

Look in upload/system/config/catalog.php and upload/system/config/admin.php.

Set

$_['site_ssl'] = false;

to

$_['site_ssl'] = true;

Re: Https Mixed content error

Posted: Thu Mar 17, 2016 9:19 pm
by Saj
Thank you budgetneon, problem is fixed. ;)

Re: Https Mixed content error

Posted: Sun Sep 11, 2016 8:26 pm
by rakeshmaya
I am getting this error on 2.1.0.1 how do i solve this, i dont see this directory structure

Re: Https Mixed content error

Posted: Mon Sep 11, 2017 9:46 pm
by Dunald
Hi, i have same issue but in 1.5.5.1 how can I solve this?

Re: Https Mixed content error

Posted: Mon Sep 11, 2017 10:51 pm
by webcorvo
rakeshmaya wrote:
Sun Sep 11, 2016 8:26 pm
I am getting this error on 2.1.0.1 how do i solve this, i dont see this directory structure
Edit file admin/config.php
and on the root of the shop
and put:

// HTTP
define('HTTP_SERVER', 'https://yourdpomain.com');

// HTTPS
define('HTTPS_SERVER', ''https://yourdpomain.com');

Re: Https Mixed content error

Posted: Mon Sep 11, 2017 11:11 pm
by Dunald
All the site IS https but the issue is why it is Https Mixed content error. I found out that is is the "What do you want to..." form that is in http. The question now is how to make it https or how to remove it all together.

Re: Https Mixed content error

Posted: Mon Sep 11, 2017 11:18 pm
by webcorvo
You first install OC on http, and after, you install your SSL and made the configuration on server admin OC am i right?

Re: Https Mixed content error

Posted: Mon Sep 11, 2017 11:37 pm
by Dunald
Yes, EVERYTHING is https all images and all URLs but the "What do you want to do next" is not https. That is why there is a error of mixed content.

"Mixed Content: The page at 'https://www.MySite.se/index.php?route=checkout/cart' was loaded over a secure connection, but contains a form which targets an insecure endpoint 'http://www.MySite.se/index.php?route=checkout/cart'. This endpoint should be made available over a secure connection."

The form is this one:
<div id="reward" class="content" style="display: none;">
<form action="http://www.MySite.se/index.php?route=checkout/cart" method="post" enctype="multipart/form-data">

I do not know why this part is the only part of my store that is not secure. (The URL is still https) https://www.MySite.se/index.php?route=checkout/cart
First of all I want that form to be https. If this is not possible I want to remove it but then my customers can´t use coupongs...

Re: Https Mixed content error

Posted: Mon Sep 11, 2017 11:47 pm
by webcorvo
Check your PM

Re: Https Mixed content error

Posted: Tue Sep 12, 2017 4:38 am
by Dunald
Thanks, found it. No error in OC only at my end.

Re: Https Mixed content error

Posted: Tue Sep 12, 2017 4:09 pm
by webcorvo
I am glad that works now ;)

Re: Https Mixed content error

Posted: Fri Apr 06, 2018 9:05 pm
by info.home
Hi! My version is: 1.5.6.4
Please help me how to fix this. I got mixed content after move to HTTPS

Re: Https Mixed content error

Posted: Sat Apr 07, 2018 4:24 pm
by webcorvo
Hi,

The problem is on all shop? Admin and Catalog?

Re: Https Mixed content error

Posted: Sat Apr 07, 2018 7:05 pm
by Dunald
Mixed content is 9 out of 10 times images in the description that are http but the page is https.
Go to admin/product and change the imagelink from http to https.
Also check that the other images are https.