Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL Errors, Session Cookie, Session Cache, NOVICE Problems?


hanool

Recommended Posts

Posted

Hi... Bare Novice here...

 

 

I have define('ENABLE_SSL', true); and had problem with the page can not display... When I checked "catalog/includes/configure.php" and "admin/includes/configure.php" files, I have notice that 'HTTPS_SERVER' was set incorrect, so I have revised as following;

 

catalog/includes/configure.php file from...

define('HTTP_SERVER', 'http://all4canopy.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://all4canopy.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

 

catalog/includes/configure.php file to...

define('HTTP_SERVER', 'http://all4canopy.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://secure.vosn.net/~all4cano/'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

 

admin/includes/configure.php from...

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://all4canopy.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://all4canopy.com');

define('HTTPS_CATALOG_SERVER', 'https://all4canopy.com');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/home/all4cano/public_html/catalog/'); // where the pages are located on the server

 

admin/includes/configure.php to...

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://all4canopy.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://all4canopy.com');

define('HTTPS_CATALOG_SERVER', 'https://secure.vosn.net/~all4cano/');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/home/all4cano/public_html/catalog/'); // where the pages are located on the server

 

After I made this change, the https:// page opens but states that the cookie is not correctly set... and advising to set web browser security level as "Medium" and I set as "Medium" but still the same message... This shows up on all https:// pages...

 

 

So I took a wild guess and edit the catalog/includes/configure.php file

From;

define('HTTPS_COOKIE_DOMAIN', 'all4canopy.com');

To;

define('HTTPS_COOKIE_DOMAIN', 'https://secure.vosn.net/~all4cano/');

And bunch of error messages comes up on http:// and https:// pages...

So I edit again to define('HTTPS_COOKIE_DOMAIN', 'all4canopy.com');

 

But still having following error messages....

 

Warning: Cannot modify header information - headers already sent by (output started at /home/all4cano/public_html/catalog/includes/configure.php:52) in /home/all4cano/public_html/catalog/includes/functions/general.php on line 1174

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/all4cano/public_html/catalog/includes/configure.php:52) in /home/all4cano/public_html/catalog/includes/functions/sessions.php on line 67

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/all4cano/public_html/catalog/includes/configure.php:52) in /home/all4cano/public_html/catalog/includes/functions/sessions.php on line 67

 

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

 

Here is the sample URLs...

http://all4canopy.com/catalog/index.php

http://all4canopy.com/catalog/product_info...ion=add_product

 

What am I doing wrong???

 

Here is the the copy of "catalog/includes/configure.php" and "admin/includes/configure.php" files

 

catalog/includes/configure.php File;

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://all4canopy.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://secure.vosn.net/~all4cano/'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'all4canopy.com');

define('HTTPS_COOKIE_DOMAIN', 'all4canopy.com');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

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

 

//Added for BTS1.0

define('DIR_WS_TEMPLATES', 'templates/');

define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/');

define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/');

//End BTS1.0

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/home/all4cano/public_html/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection........

 

 

admin/includes/configure.php Files;

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://all4canopy.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://all4canopy.com');

define('HTTPS_CATALOG_SERVER', 'https://secure.vosn.net/~all4cano/');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/home/all4cano/public_html/catalog/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/all4cano/public_html/catalog/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

define('DIR_FS_CATALOG', '/home/all4cano/public_html/catalog/'); // 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/');

 

// define our database connection.....

 

 

Can anyone please shed some light on this???

 

Thank you!

Posted

PROBLEM SOLVED!!!

 

The error showed up because of the extra blank lines at the bottom of the catalog/includes/configure.php file... After delete them the errors are gone!!!

 

Second, after I fixed errors, I came up with cookie problem...

All you need to do is just turn off 'force cookies' in the admin under : Configuration Sessions!

 

Or by the way, I also edit the catalog/includes/configure.php File;

define('HTTPS_COOKIE_DOMAIN', 'all4canopy.com');

to

define('HTTPS_COOKIE_DOMAIN', 'https://secure.vosn.net');

 

Hope this helps Novice and Newbee like me... :oops:

Posted

Thankyou, worked a treat!

 

 

Only had to make a couple of extra minor changes in my adminincludesconfigure.php

to:

 

define('DIR_WS_CATALOG', '/~username/shop/');

define('DIR_WS_CATALOG_IMAGES', '/~username/shop/images/');

 

and Success at last!!

 

Cheers and thanks again

Archived

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

×
×
  • Create New...