Page 1 of 1
SSL on 1.3.0?
Posted: Wed Jul 22, 2009 10:58 am
by tahnmeep
Hey everyone,
I'm trying to get my SSL hooked up with OpenCart 1.3.0. Before, the config.php files had a couple of slots for the SSL addresses... but now the config.php files are empty and I've tried a number of combinations of 1.2.8's config.php files with no luck. Any suggestions? Thanks!
PS here is the error I am receiving when I plug in the same config.php from 1.2.8:
Error: Table 'tahnee_emporium.cart_setting' doesn't exist
Error No: 1146
SELECT * FROM cart_setting
Re: SSL on 1.3.0?
Posted: Wed Jul 22, 2009 2:52 pm
by readyman
Might just be missing the "db_prefix" before the "cart setting" table name... my guess anyway. I'll look a little later - I don't have 1.3.0 right here on this PC.
Re: SSL on 1.3.0?
Posted: Thu Jul 30, 2009 7:51 am
by tahnmeep
Sorry to bump, but I cannot seem to be able to fix this problem. It's the only thing holding me back from opening my shop.
I don't even see a cart_setting table in my db.
Since the config.php's under the root and /admin download as COMPLETELY BLANK FILES for 1.3.0, is there a completely different code layout for enabling SSL? I wouldn't know what to type in for these blank config's, or how to tweak the configs from 1.2.8 to work for 1.3.0.
I am not on a shared SSL, btw-- I have a certificate and it worked before!
Please help!
Thanks!
Re: SSL on 1.3.0?
Posted: Thu Jul 30, 2009 4:06 pm
by gavin m
Just noticed I am having the same trouble. no ssl on any of the pages it should be.....
Re: SSL on 1.3.0?
Posted: Fri Jul 31, 2009 1:31 am
by gavin m
Got mine working.
@tahnmeep, I have sent you a PM with the detials of what was in my config.php file, I hope it helps.
Re: SSL on 1.3.0?
Posted: Fri Jul 31, 2009 9:16 am
by tahnmeep
THANK YOU GAVIN!
Thought I'd post what code Gavin sent me for anyone else who runs into this problem.
Code: Select all
<?php
// HTTP
define('HTTP_SERVER', 'http://www.YOURSITE.co.uk/');
define('HTTP_IMAGE', 'http://www.YOURSITE.co.uk/image/');
// HTTPS
define('HTTPS_SERVER', 'https://www.YOURSITE.co.uk/');
define('HTTPS_IMAGE', 'https://www.YOURSITE.co.uk/image/');
// DIR
define('DIR_APPLICATION', '/home/DIRECTORY NAME/public_html/catalog/');
define('DIR_SYSTEM', '/home/DIRECTORY NAME/public_html/system/');
define('DIR_DATABASE', '/home/DIRECTORY NAME/public_html/system/database/');
define('DIR_LANGUAGE', '/home/DIRECTORY NAME/public_html/catalog/language/');
define('DIR_TEMPLATE', '/home/DIRECTORY NAME/public_html/catalog/view/theme/');
define('DIR_CONFIG', '/home/DIRECTORY NAME/public_html/system/config/');
define('DIR_IMAGE', '/home/DIRECTORY NAME/public_html/image/');
define('DIR_CACHE', '/home/DIRECTORY NAME/public_html/cache/');
define('DIR_DOWNLOAD', '/home/DIRECTORY NAME/public_html/download/');
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'DBUSERNAME');
define('DB_PASSWORD', 'DBPASSWORD');
define('DB_DATABASE', 'DATABASE NAME');
define('DB_PREFIX', '');
?>