Post by Saj » Thu Mar 17, 2016 7:50 pm

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 :) ;)

Saj
Newbie

Posts

Joined
Wed Mar 16, 2016 5:00 am

Post by budgetneon » Thu Mar 17, 2016 7:53 pm

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;

New member

Posts

Joined
Sat Sep 20, 2014 11:32 pm


Post by Saj » Thu Mar 17, 2016 9:19 pm

Thank you budgetneon, problem is fixed. ;)

Saj
Newbie

Posts

Joined
Wed Mar 16, 2016 5:00 am

Post by rakeshmaya » 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

Newbie

Posts

Joined
Sun Sep 11, 2016 8:25 pm

Post by Dunald » Mon Sep 11, 2017 9:46 pm

Hi, i have same issue but in 1.5.5.1 how can I solve this?

Active Member

Posts

Joined
Tue Mar 15, 2011 9:05 pm

Post by webcorvo » Mon Sep 11, 2017 10:51 pm

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');

Opencart Developer


User avatar
Active Member

Posts

Joined
Mon Mar 20, 2017 11:42 pm
Location - Lisbon, Portugal

Post by Dunald » Mon Sep 11, 2017 11:11 pm

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.

Active Member

Posts

Joined
Tue Mar 15, 2011 9:05 pm

Post by webcorvo » Mon Sep 11, 2017 11:18 pm

You first install OC on http, and after, you install your SSL and made the configuration on server admin OC am i right?

Opencart Developer


User avatar
Active Member

Posts

Joined
Mon Mar 20, 2017 11:42 pm
Location - Lisbon, Portugal

Post by Dunald » Mon Sep 11, 2017 11:37 pm

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...

Active Member

Posts

Joined
Tue Mar 15, 2011 9:05 pm

Post by webcorvo » Mon Sep 11, 2017 11:47 pm

Check your PM

Opencart Developer


User avatar
Active Member

Posts

Joined
Mon Mar 20, 2017 11:42 pm
Location - Lisbon, Portugal

Post by Dunald » Tue Sep 12, 2017 4:38 am

Thanks, found it. No error in OC only at my end.

Active Member

Posts

Joined
Tue Mar 15, 2011 9:05 pm

Post by webcorvo » Tue Sep 12, 2017 4:09 pm

I am glad that works now ;)

Opencart Developer


User avatar
Active Member

Posts

Joined
Mon Mar 20, 2017 11:42 pm
Location - Lisbon, Portugal
Who is online

Users browsing this forum: gazn0357 and 48 guests