kdmonk1 Posted August 6, 2006 Share Posted August 6, 2006 I am a newbie and I am having issues with a Parse Error for my shop..Could someone tell me how to get past this? Parse error: parse error in C:\Inetpub\vhosts\thecurveinc.com\httpdocs\catalog\admin\includes\functions\database.php on line 19 Link to comment Share on other sites More sharing options...
spax Posted August 6, 2006 Share Posted August 6, 2006 Post the code from lines 18, 19 and 20 and someone will help you! Link to comment Share on other sites More sharing options...
kdmonk1 Posted August 6, 2006 Author Share Posted August 6, 2006 Post the code from lines 18, 19 and 20 and someone will help you! Here are lines 13 - 25 from database.php.. function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') { global $$link; if (USE_PCONNECT == 'true') { $$link = mysql_pconnect($server, $username, $password); } else { $$link = mysql_connect(localhost:8306, username, password); } if ($$link) mysql_select_db(curve_db); return $$link; } Link to comment Share on other sites More sharing options...
kdmonk1 Posted August 6, 2006 Author Share Posted August 6, 2006 Here are lines 13 - 25 from database.php.. function tep_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') { global $$link; if (USE_PCONNECT == 'true') { $$link = mysql_pconnect($server, $username, $password); } else { $$link = mysql_connect(localhost:8306, username, password); } if ($$link) mysql_select_db(curve_db); return $$link; } Here are my configure.php files as well: <?php /* $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $ 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', 'www.thecurveinc.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.thecurveinc.com'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); 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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('localhost:8306', ''); // eg, localhost - should not be empty for productive servers define('username', ''); define('password', ''); define('curve_db', 'osCommerce'); define('USE_PCONNECT', 'true'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> ________________________________________________________________________________ __ Here is the other: <?php /* $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', 'www.thecurveinc.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'secure.thecurveinc.com'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); 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:8306'); define('DB_SERVER_USERNAME', 'username'); define('DB_SERVER_PASSWORD', 'password'); define('DB_DATABASE', 'curve_db'); define('USE_PCONNECT', 'true'); define('STORE_SESSIONS', ''); ?> Any kind of help would be appreciated...! Link to comment Share on other sites More sharing options...
kdmonk1 Posted August 6, 2006 Author Share Posted August 6, 2006 Here are my configure.php files as well: <?php /* $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $ 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', 'www.thecurveinc.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.thecurveinc.com'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); 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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('localhost:8306', ''); // eg, localhost - should not be empty for productive servers define('username', ''); define('password', ''); define('curve_db', 'osCommerce'); define('USE_PCONNECT', 'true'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> ________________________________________________________________________________ __ Here is the other: <?php /* $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2002 osCommerce Released under the GNU General Public License */ // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) define('HTTP_SERVER', 'www.thecurveinc.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'secure.thecurveinc.com'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); 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:8306'); define('DB_SERVER_USERNAME', 'username'); define('DB_SERVER_PASSWORD', 'password'); define('DB_DATABASE', 'curve_db'); define('USE_PCONNECT', 'true'); define('STORE_SESSIONS', ''); ?> Any kind of help would be appreciated...! _____________________________________________________________________________ I made some corrections to the file and the store is up and running but I am still recieving issues..Can anyone tell me what this means and hw I can fix it? Warning: session_start(): open(/tmp\sess_87ecc4dc51f2b87098820ecce9e2ab27, O_RDWR) failed: No such file or directory (2) in C:\Inetpub\vhosts\thecurveinc.com\httpdocs\catalog\includes\functions\sessions.php on line 97 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Inetpub\vhosts\thecurveinc.com\httpdocs\catalog\includes\functions\sessions.php:97) in C:\Inetpub\vhosts\thecurveinc.com\httpdocs\catalog\includes\functions\sessions.php on line 97 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Inetpub\vhosts\thecurveinc.com\httpdocs\catalog\includes\functions\sessions.php:97) in C:\Inetpub\vhosts\thecurveinc.com\httpdocs\catalog\includes\functions\sessions.php on line 97 Warning Warning: I am able to write to the configuration file: C:\\Inetpub\\vhosts\\thecurveinc.com\\httpdocs\\catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. Warning Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created. Link to comment Share on other sites More sharing options...
choosealogin Posted August 6, 2006 Share Posted August 6, 2006 Try changing this line, in your configure.php files define('STORE_SESSIONS', ''); change to define('STORE_SESSIONS', 'mysql'); Link to comment Share on other sites More sharing options...
kdmonk1 Posted August 6, 2006 Author Share Posted August 6, 2006 Try changing this line, in your configure.php files define('STORE_SESSIONS', ''); change to define('STORE_SESSIONS', 'mysql'); ___________________________________________________________________ That worked like a charm..Thanks! Now my only other issue that I have is the double url is coming up... ex: http://www.thecurveinc.com/catalog/www.the...dex.php?cPath=3 Should only be "www.thecurveinc.com/catalog/index.php?cPath=3"...What file controls that first part of the code that is making a duplicate..? I believe that would be the first part I would need to look at, right? Link to comment Share on other sites More sharing options...
♥Vger Posted August 6, 2006 Share Posted August 6, 2006 Some mistakes (should be): define('HTTP_SERVER', 'http://www.thecurveinc.com'); define('HTTPS_CATALOG_SERVER', 'https://secure.thecurveinc.com'); define('DIR_WS_ADMIN', '/catalog/admin/'); define('HTTPS_COOKIE_DOMAIN', 'secure.thecurveinc.com'); define('DIR_WS_HTTPS_CATALOG', '/catalog/'); //assuming it's in a folder here too Vger Link to comment Share on other sites More sharing options...
kdmonk1 Posted August 7, 2006 Author Share Posted August 7, 2006 Some mistakes (should be): define('HTTP_SERVER', 'http://www.thecurveinc.com'); define('HTTPS_CATALOG_SERVER', 'https://secure.thecurveinc.com'); define('DIR_WS_ADMIN', '/catalog/admin/'); define('HTTPS_COOKIE_DOMAIN', 'secure.thecurveinc.com'); define('DIR_WS_HTTPS_CATALOG', '/catalog/'); //assuming it's in a folder here too Vger ________________________________________________________________________ That worked perfect!..Thank you, thank,you thank you...I have one other issues...Still..I am seeing double url's on the catalog page now instead of the admin page...How do I fix that now? http://www.thecurveinc.com/catalog/ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.