Post by gavin m » Mon Jun 08, 2009 6:11 pm

Hi,

I have a ssl certificate already on my server, and it was working when I had a Drupal and Uberacart installed.

I was wondering what I have to do to get it to work with open cart? Do I need just need to list the pages in .htaccess? If so, is there a list of recommended pages to protect?

Is there anything else to do before turning on the 'Use SSL' setting, like a configure file somewhere???

Cheers
Gavin.

Active Member

Posts

Joined
Thu Jun 04, 2009 3:23 pm

Post by gavin m » Tue Jun 09, 2009 2:01 am

Anyone? Surely there are people that have opencart protected by SSL..........

I'm surprised there is no doc on it on the wiki either, as a ssl cert is a basic need for a shop.

The issue is that I have come from Drupal, and they have a module where you just list the pages you want protected and it does it for you. For opencart, I need to know how to do it myself.

Anyone?

Active Member

Posts

Joined
Thu Jun 04, 2009 3:23 pm

Post by gavin m » Tue Jun 09, 2009 2:47 am

hmmmmm, I think I have it sorted. It's in the config.php file in the root folder.

I've also made changes to the config.php in the admin folder, but I now don't see images on the products in the admin area..... Can any one shed any light on that?

Active Member

Posts

Joined
Thu Jun 04, 2009 3:23 pm

Post by Qphoria » Tue Jun 09, 2009 3:22 am

right click on where an image should be and do properties or view image and see what the path thinks it is.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by gavin m » Tue Jun 09, 2009 3:43 am


Active Member

Posts

Joined
Thu Jun 04, 2009 3:23 pm

Post by pauld » Tue Jun 09, 2009 6:03 am

On a similar issue, I am about to try ssl for the first time on opencart.

If I switch to ssl, but get the info wrong, will the admin then be inaccessible for me to switch the ssl back off again?

I am going to be using a shared certificate that I get free from my host so it will be a bit more complicated than usual. Not the best but it will do for now and at least it is free :-)

However, can I switch the ssl off again afterwards?

Thanks for anyone that can help.

Paul.

New member

Posts

Joined
Sat May 23, 2009 11:44 pm

Post by pauld » Tue Jun 16, 2009 5:42 am

Hi again,

Just to update that I updated the config file with the https settings, and switched it on and all seems to be working fine. ;D

The reason I asked was that I remember with cubecart once I got the settings wrong (missed a / off the end of one of the settings) and I was totally locked out, could not access admin and could not reset the ssl switch. In the end I was saved from having to reinstall by a user with some php code that switched off the ssl. Although it was a lot of hassle.

Just thought I would let people know,

Paul.

PS Sorry gavin m for hijacking your topic a bit - although I could feel the brushweeds blowing through! :)

New member

Posts

Joined
Sat May 23, 2009 11:44 pm

Post by gavin m » Sat Jun 27, 2009 11:52 pm

gavin m wrote:The address it says is:

https://www.mysite.co.uk/cache/307-100x100.jpg
I'm still not seeing the images in the admin pages for the products. They show on the store, so thats ok, but it's a little annoying they don't show in the admin area too.

Any ideas?

Active Member

Posts

Joined
Thu Jun 04, 2009 3:23 pm

Post by gavin m » Mon Jun 29, 2009 2:43 pm

OK, os I have noticed the location for the image is wrong.

When SSL is turned on, the location is:

https://www.mysite.co.uk/cache/307-100x100.jpg

But if I turn SSL off, the lcoation is

http://www.mysite.co.uk/image/cache/307-100x100.jpg

Any idea where I can make the change to ensure the locations are right when SSL is turned on?

Active Member

Posts

Joined
Thu Jun 04, 2009 3:23 pm

Post by readyman » Mon Jun 29, 2009 5:39 pm

What do you have in your config file? Make sure you fill in the HTTPS fields.

Code: Select all

// HTTP
define('HTTP_SERVER', 'http://localhost/octemplate129/');
define('HTTP_IMAGE', 'http://localhost/octemplate129/image/');

// HTTPS
define('HTTPS_SERVER', '');
define('HTTPS_IMAGE', '');

http://www.alreadymade.com
Follow me on twitter.com/alreadymade


User avatar
Global Moderator

Posts

Joined
Wed May 20, 2009 5:16 am
Location - Sydney

Post by gavin m » Tue Jun 30, 2009 3:59 pm

Mine says:

Code: Select all

// HTTP
define('HTTP_SERVER', 'http://www.company.co.uk/');
define('HTTP_IMAGE', 'http://www.company.co.uk/image/');

// HTTPS
define('HTTPS_SERVER', 'https://www.company.co.uk/');
define('HTTPS_IMAGE', 'https://www.company.co.uk/image/');
Does that look right????
readyman wrote:What do you have in your config file? Make sure you fill in the HTTPS fields.

Code: Select all

// HTTP
define('HTTP_SERVER', 'http://localhost/octemplate129/');
define('HTTP_IMAGE', 'http://localhost/octemplate129/image/');

// HTTPS
define('HTTPS_SERVER', '');
define('HTTPS_IMAGE', '');

Active Member

Posts

Joined
Thu Jun 04, 2009 3:23 pm

Post by gavin m » Tue Jul 07, 2009 7:11 pm

Anyone?

My config file is as above, but still no images in the Admin end of the site. It's starting to annoy me..... ::)

Active Member

Posts

Joined
Thu Jun 04, 2009 3:23 pm

Post by Daniel » Tue Jul 07, 2009 7:19 pm

pm me your admin details.

this is very strange.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by gavin m » Wed Jul 08, 2009 10:32 pm

Thanks to Daniel I now have this fixed.

It would appear I was the problem......... ::)

Thanks Daniel.

Active Member

Posts

Joined
Thu Jun 04, 2009 3:23 pm

Post by KT9130 » Sat Jul 11, 2009 12:01 am

Can we know what the issue was... care to elaborate?

Thanks

Newbie

Posts

Joined
Mon Jul 06, 2009 9:20 am

Post by Daniel » Sat Jul 11, 2009 12:08 am

he had defined his image directory twice and put the wrong url in.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by gavin m » Sat Jul 11, 2009 3:24 am

Yep, I was a muppet.....

Active Member

Posts

Joined
Thu Jun 04, 2009 3:23 pm

Post by scottt20 » Wed Dec 02, 2009 5:07 am

I'm having this problem and have checked my config settings, still don't understand what's wrong. I can access my site at http://___.com and all looks fine, when I go to https://___.com everything BUT the images (products and my logo.png are there).

From my config file:

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://____.com/admin/');
define('HTTP_CATALOG', 'http://____.com/');
define('HTTP_IMAGE', 'http://____.com/image/');

// HTTPS
define('HTTPS_SERVER', 'https://____.com/admin/');
define('HTTPS_IMAGE', 'https://____.com/image/');
When I view source on my live HTTP site, Line 23 for the logo.png reads <img src="http://___.com/image/logo.png">, but the same line viewed from https://___.com reads only <img src="logo.png"> with no URL prefix, but I've definitely got it in my config.

What's wrong?

Newbie

Posts

Joined
Wed Dec 02, 2009 5:05 am

Post by gowrisankarn » Sat Jan 09, 2010 9:20 am

Hi

I had same problem. After updating config file with below details everything works like charm.

// HTTP
define('HTTP_SERVER', 'http://shop.XXXX.com/');
define('HTTP_IMAGE', 'http://shop.XXXX.com/image/');
define('HTTP_CATALOG', 'http://shop.XXXX.com/');
// HTTPS
define('HTTPS_SERVER', 'https://shop.XXXX.com/');
define('HTTPS_IMAGE', 'https://shop.XXXX.com/image/');
define('HTTPS_CATALOG', 'https://shop.XXXX.com/');

Hope this helps..

Regards
Narayana GR

Newbie

Posts

Joined
Sat Jan 09, 2010 9:17 am

Post by gazdog » Tue Aug 09, 2011 8:06 pm

Ive also had this problem... Been tring to work out why the ssl on my site was only partially encripted. No facebook, no twitter..

I was using google fonts!!

2 Hours it's taken me! Maybe this may remind anyone else that is looking through this thread. Cheers

New member

Posts

Joined
Thu Dec 16, 2010 5:45 pm
Location - Manchester
Who is online

Users browsing this forum: Bing [Bot] and 62 guests