Post by FireIslandMan » Sun Dec 09, 2007 10:37 am

Anybody else get SSL and https working? Running XHTML Compliant OpenCart 0.7.7 on a 1and1 shared server (PHP Version 5.2.4 MySQL 5.0.45-log, Linux infong 2.4 #1 SMP Tue May 23 17:47:33 CEST 2006 i686) with a Geotrust SSL Certificate.

I set "Use SSL: Yes" in Shop and Admin, but get the below error when I try to switch to https:


Notice: Only variables should be assigned by reference in /homepages/htdocs/site.com/shop/library/locator.php on line 7

Notice: Only variables should be assigned by reference in /homepages/htdocs/site.com/shop/library/locator.php on line 7

Notice: Only variables should be assigned by reference in /homepages/htdocs/site.com/shop/library/locator.php on line 7

Notice: Only variables should be assigned by reference in /homepages/htdocs/site.com/shop/library/locator.php on line 7

Notice: Only variables should be assigned by reference in /homepages/htdocs/site.com/shop/library/locator.php on line 7

Notice: Only variables should be assigned by reference in /homepages/htdocs/site.com/shop/library/locator.php on line 7

Notice: Only variables should be assigned by reference in /homepages/htdocs/site.com/shop/library/locator.php on line 7

Notice: Only variables should be assigned by reference in /homepages/htdocs/site.com/shop/library/locator.php on line 7

Notice: Undefined property: locator in /homepages/htdocs/site.com/shop/library/application/controller.php on line 74

Fatal error: Call to a member function on a non-object in /homepages/htdocs/site.com/shop/catalog/controller/home.php on line 4

Also tried these instructions with same results.
Last edited by FireIslandMan on Fri Dec 28, 2007 9:18 am, edited 1 time in total.

Newbie

Posts

Joined
Sun Oct 28, 2007 5:57 am

Post by Bebe » Mon Dec 10, 2007 8:48 am

Is the Geo Trust certificate owned by you or is it a shared SSL provided by your host? If it is a shared SSL certificate, I believe you need your own 'Private SSL Certificate' and a dedicated IP for the SSL to work properly.
I am not familiar as to exactly what the errors mean that are showing but when I looked at the php pages as indicated in your post, none of the errors state anything about SSL. Was the site working properly without errors prior to you adjusting your shop for SSL?
My site is running properly with SSL (https) as per my previous post http://forum.opencart.com/index.php?topic=611.0. Hope this helps. I will try to update this info on my previous post.
This method works for me and I am no expert but as with all shared information, please use at your own risk.
Bebe

Newbie

Posts

Joined
Sat Nov 10, 2007 9:34 pm

Post by FireIslandMan » Mon Dec 10, 2007 1:07 pm

Thanks for your reply Bebe. Yes, our Geo Trust SSL Certificate is Private. Not sure about the dedicated IP, but I have other shopping carts (Zen Cart and Ecommerce Templates) working on similar servers with Geo Trust SSL. I tried your method without success. OpenCart is working ok without switching to https.

Newbie

Posts

Joined
Sun Oct 28, 2007 5:57 am

Post by Bebe » Mon Dec 10, 2007 3:50 pm

That's strange, like I said, I know for a fact that SSL works with opencart. I would try it again especially since you've got SSL to work on your other sites.
I don't know what to suggest.....perhaps..... Did you try both with the www and without? Did you double check the exact address using all slashes and quotations? If your site is in your root folder or sub folder? Is the cache clear?
I would also check to see if your GT Certificate requires dedicated IP or not. You would probably know if you have a dedicated IP because most hosts charge extra for this service. From what I just read on the GT Certificate site:
"You need to have a separate IP address for each domain you want to secure. The reason for this is because a certificate is bound only to a domain name but, the SSL protocol is bound to static IP addresses; therefore, any certificate-enabled web site must have its own unique IP address."
Please don't give up and if you do find the solution, please note it here as it may be helpful to other opencarters ; )  I myself look forward to hearing you've got your SSL working on your site using opencart!
Bebe

Newbie

Posts

Joined
Sat Nov 10, 2007 9:34 pm

Post by FireIslandMan » Tue Dec 11, 2007 2:45 am

Thanks Bebe, I also want this to work since OpenCart looks so promising. 1and1 only allows 1 Dedicated SSL Certificate per shared hosting package, so must be dedicated IP also. Site and SSL set to use https. Get same error without just using https. My homepage is an html page which works fine when switch to https, but not when switch using OpenCart. Have no problems with other sites using Zen Cart and Ecommerce Templates on similar servers with Geo Trust SSL...
Last edited by FireIslandMan on Tue Dec 18, 2007 12:10 pm, edited 1 time in total.

Newbie

Posts

Joined
Sun Oct 28, 2007 5:57 am

Post by Bebe » Tue Dec 11, 2007 6:04 am

Are your config files etc. indicating https? When I checked the view source page I see no indication of https anywhere so it seems like the config files as indicated in my first writeup are possibly not set?
It also seems like you perhaps made some changes to the original opencart references which I am not familiar with.
For example, when viewing the source files, your site shows:
BasketCheckout
my site shows:
Checkout
As you can see, my site automatically takes the link to https and I see none of your links indicate https.
I hope with this info you are able to find the solution.
I am a bit familiar with other carts but I must say I love my opencart. It's so much easier to use, simple and does its job, especially for people like me who have very little experience on the backend.
Bebe

Newbie

Posts

Joined
Sat Nov 10, 2007 9:34 pm

Post by FireIslandMan » Tue Dec 11, 2007 6:20 am

Yes, I edited both my config.php indicating https per your post, but get same error and can't even login in the admin area. So now my congig.php files have https definition blank like before.

This is driving me mad as I too love the simplicity of OpenCart and need it to work badly. We even switched hosting companies to be able to use OC, must have chosen wrong one... Are you on a shared hosting server? If so, which hosting company?

Newbie

Posts

Joined
Sun Oct 28, 2007 5:57 am

Post by Daniel » Tue Dec 11, 2007 6:58 am

Just emtpy the defined https and you should be able to access your site again.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Daniel » Tue Dec 11, 2007 7:00 am

Just empty the defined https and you should be able to access your site again.

The error are the same as if you where using PHP4.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by FireIslandMan » Tue Dec 11, 2007 9:15 am

Thanks Daniel, I can access site again. The OpenCart installation checkup didn't show errors and our server info says PHP Version: 5.2.4  DB Version: MySQL 5.0.45-log

Our site is hosted on a 1&1 Linux hosting package (Apache/1.3.33 (Unix)) using a .htaccess file with AddType x-mapp-php5 .php in it per:

http://faq.1and1.com/scripting_language ... ade/6.html

Newbie

Posts

Joined
Sun Oct 28, 2007 5:57 am

Post by FireIslandMan » Tue Dec 18, 2007 12:20 pm

Our hosting had 2 different versions of PHP, one for normal requests and another for SSL. Thanks to Daniel's help we finally resolved the above php errors by adding an .htaccess file with:

AddHandler x-mapp-php5 .php

This tells Apache to use PHP 5 instead of PHP 4 for the extension .php in the
directory the .htaccess is placed and all sub-directories under it. Now SSL and https work  ;D

Newbie

Posts

Joined
Sun Oct 28, 2007 5:57 am

Post by FireIslandMan » Tue Dec 18, 2007 12:57 pm

Now when cart switches to https in Internet Explorer 6 and 7 I get the "Security Information" pop up:

This page contains both secure and nonsecure items.

Do you want to display the nonsecure items?

[Yes]  [No]  [More Info]

If click [No] my product images, language flag or Reviews stars do not display! To prevent this error All graphics and other components need to come from the secure site so I changed all my template img tags to:

img src="https://"

So my template images display ok, BUT HOW DO I GET OPENCART TO DO THE SAME FOR MY PRODUCT IMAGES?

RESOLVED: SET ALL HTTP DEFINITIONS TO HTTPS IN ALL CONFIG.PHP FILES
Last edited by FireIslandMan on Fri Dec 28, 2007 9:18 am, edited 1 time in total.

Newbie

Posts

Joined
Sun Oct 28, 2007 5:57 am
Who is online

Users browsing this forum: No registered users and 2 guests