koolkuzz Posted March 12, 2007 Posted March 12, 2007 I have just had a ssl certificate installed on my osc site, but in one of the steps I have completely incorrectly changed the configure.php file located in the catalog/admin folder.... I receive an error message: "Parse error: parse error, unexpected T_STRING in /home/xxx/public_html/admin/includes/configure.php on line 39"........I need someone to let me know what is wrong with the one I have at the moment on my server: <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 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.xxx.com); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER','http://www.xxx.com');//eg, https://localhost - should not be empty for productive servers define('HTTPS_CATALOG_SERVER','https://www.xxx.com'); define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('DIR_FS_DOCUMENT_ROOT', '/home/fullsoft/public_html/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/fullsoft/public_html/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', '/home/fullsoft/public_html/'); // 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', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', xxxx); define('DB_SERVER_PASSWORD', 'xxx'); define('DB_DATABASE', 'xxx_fs1'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> can anyone help me out?
MSP Posted March 12, 2007 Posted March 12, 2007 just a guess... try opening the page in a text editor and deleting any white space at the end, and then reuploading configure.php with a ftp client
dynamoeffects Posted March 12, 2007 Posted March 12, 2007 Your problem is here: define('DIR_FS_BACKUP', DIR_FS_ADMIN . '/backups/' it should be: define('DIR_FS_BACKUP', DIR_FS_ADMIN . '/backups/'); Please use the forums for support! I am happy to help you here, but I am unable to offer free technical support over instant messenger or e-mail.
Guest Posted March 12, 2007 Posted March 12, 2007 Change; define('DIR_FS_BACKUP', DIR_FS_ADMIN . '/backups/' to; define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
Guest Posted July 1, 2007 Posted July 1, 2007 I see another problem here - I've just used your code to help me figure out MY problem, so in case this is helpful... the / before admin in the define DIR_WS_ADMIN section caused a doubling of forward slashes - so should be 'admin/' instead of '/admin/' - though perhaps there is some other reason why you need that slash that I don't know about. Just in case this is helpful.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.