Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Configuring SSL with a server-generated certificat


gntv_webmaster

Recommended Posts

I'm migrating an online store from Smart-E-Cart/PHPShop to OS Commerce all while moving the site to a new server. The new server allowed for me to generate a SSL certificate and have it hosted on the server. When I go in to register, I get these error messages:

 

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/gntv/public_html/lakej2/includes/configure.php:48) in /home/gntv/public_html/lakej2/includes/functions/sessions.php on line 67

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/gntv/public_html/lakej2/includes/configure.php:48) in /home/gntv/public_html/lakej2/includes/functions/sessions.php on line 67

 

Warning: Cannot modify header information - headers already sent by (output started at /home/gntv/public_html/lakej2/includes/configure.php:48) in /home/gntv/public_html/lakej2/includes/functions/general.php on line 29

 

My configure.php file is:

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://gntvmin.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://ace.securenet-server.net/~gntv'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'gntvmin.com');
 define('HTTPS_COOKIE_DOMAIN', 'ace.securenet-server.net/~gntv');
 define('HTTP_COOKIE_PATH', '/lakej2/');
 define('HTTPS_COOKIE_PATH', '/lakej2/');
 define('DIR_WS_HTTP_CATALOG', '/lakej2/');
 define('DIR_WS_HTTPS_CATALOG', '/lakej2/');

 

and admin/configure.php is:

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://gntvmin.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://gntvmin.com');
 define('HTTPS_CATALOG_SERVER', 'https://ace.securenet-server.net/~gntv/');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/gntv/public_html/lakej2/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/lakej2/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/home/gntv/public_html/lakej2/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/lakej2/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/gntv/public_html/lakej2/'); // absolute path required
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
 define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

Also, I have close to 2000 items to import in (all of it audio and video tapes and CDs), so when I add an item, which tables get modified? The audio and video is grouped by the event the media was recorded from.

Link to comment
Share on other sites

The reason you're getting the error is because you have white space (blank lines or spaces) before the opening or after the closing php tag in your includes/configure.php file. Remove them and all the errors will go away - the others are caused by the first error.

 

For uploading large numbers of items from another database or spreadsheet take a look at the Easy Populate contribution.

 

Vger

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...