JCP Posted January 30, 2007 Share Posted January 30, 2007 I am attempting to follow the instructions in post: http://www.oscommerce.com/forums/index.php?showtopic=233458&hl=ssl But, I am getting an error: Parse error: parse error, unexpected T_STRING in /home/content/j/o/h/johnscycle1/html/catalog/includes/configure.php on line 15 Once I restore the original configure.php files, all is well. I am a total newbie at programming and am totally lost. Any and all help will be appreciated. I also am having trouble creating the .htaccess file but will make a separate post for it. Thank you for you help! JR Here are my configure.php files: Fom Catalog Includes: <?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://www.johnsmotorcycleparts.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER'https://www.johnsmotorcycleparts.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.johnsmotorcycleparts.com'); define('HTTPS_COOKIE_DOMAIN'www.johnsmotorcycleparts.com'); define('HTTP_COOKIE_PATH'www.johnsmotorcycleparts.com'/catalog/'); define('HTTPS_COOKIE_PATH'www.johnsmotorcycleparts.com'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_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/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/home/content/j/o/h/johnscycle1/html/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'p3smysql7.secureserver.net'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'johnscycleparts'); define('DB_SERVER_PASSWORD', 'mustang66'); define('DB_DATABASE', 'johnscycleparts'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> From Catalog Admin Includes: <?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', 'https://www.johnsmotorcycleparts.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'https://www.johnsmotorcycleparts.com'); define('HTTPS_CATALOG_SERVER'https://www.johnsmotorcycleparts.com'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/content/j/o/h/johnscycle1/html/catalog/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/content/j/o/h/johnscycle1/html/catalog/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_FS_CATALOG', '/home/content/j/o/h/johnscycle1/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 define('DB_SERVER', 'p3smysql7.secureserver.net'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'johnscycleparts'); define('DB_SERVER_PASSWORD', 'mustang66'); define('DB_DATABASE', 'johnscycleparts'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> Link to comment Share on other sites More sharing options...
Guest Posted January 30, 2007 Share Posted January 30, 2007 I am attempting to follow the instructions in post: http://www.oscommerce.com/forums/index.php?showtopic=233458&hl=ssl But, I am getting an error: Parse error: parse error, unexpected T_STRING in /home/content/j/o/h/johnscycle1/html/catalog/includes/configure.php on line 15 Once I restore the original configure.php files, all is well. I am a total newbie at programming and am totally lost. Any and all help will be appreciated. I also am having trouble creating the .htaccess file but will make a separate post for it. Thank you for you help! JR Here are my configure.php files: Fom Catalog Includes: <?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://www.johnsmotorcycleparts.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER'https://www.johnsmotorcycleparts.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.johnsmotorcycleparts.com'); define('HTTPS_COOKIE_DOMAIN'www.johnsmotorcycleparts.com'); define('HTTP_COOKIE_PATH'www.johnsmotorcycleparts.com'/catalog/'); define('HTTPS_COOKIE_PATH'www.johnsmotorcycleparts.com'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_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/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/home/content/j/o/h/johnscycle1/html/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'p3smysql7.secureserver.net'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'johnscycleparts'); define('DB_SERVER_PASSWORD', 'mustang66'); define('DB_DATABASE', 'johnscycleparts'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> From Catalog Admin Includes: <?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', 'https://www.johnsmotorcycleparts.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'https://www.johnsmotorcycleparts.com'); define('HTTPS_CATALOG_SERVER'https://www.johnsmotorcycleparts.com'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/content/j/o/h/johnscycle1/html/catalog/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/content/j/o/h/johnscycle1/html/catalog/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/catalog/'); // absolute path required define('DIR_FS_CATALOG', '/home/content/j/o/h/johnscycle1/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 define('DB_SERVER', 'p3smysql7.secureserver.net'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'johnscycleparts'); define('DB_SERVER_PASSWORD', 'mustang66'); define('DB_DATABASE', 'johnscycleparts'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> these lines are screwed up. Change : define('HTTPS_COOKIE_DOMAIN'www.johnsmotorcycleparts.com'); define('HTTP_COOKIE_PATH'www.johnsmotorcycleparts.com'/catalog/'); define('HTTPS_COOKIE_PATH'www.johnsmotorcycleparts.com'); to this : define('HTTPS_COOKIE_DOMAIN','www.johnsmotorcycleparts.com'); define('HTTP_COOKIE_PATH','www.johnsmotorcycleparts.com/catalog/'); define('HTTPS_COOKIE_PATH','www.johnsmotorcycleparts.com'); this one is wrong too : define('HTTPS_CATALOG_SERVER'https://www.johnsmotorcycleparts.com'); change to : define('HTTPS_CATALOG_SERVER','https://www.johnsmotorcycleparts.com'); Corrie Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.