boosters Posted March 2, 2007 Share Posted March 2, 2007 Please help me guyz i have a lot of trouble in oscommerce. I installed them correctly but when i try to see my admin and storefront it gives an error Warning: session_start() [function.session-start]: open(/tmp\sess_d1f742cf238dc7871f4dd19022abf552, O_RDWR) failed: No such file or directory (2) in D:\wamp\www\cart\includes\functions\sessions.php on line 97 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at D:\wamp\www\cart\includes\functions\sessions.php:97) in D:\wamp\www\cart\includes\functions\sessions.php on line 97 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\wamp\www\cart\includes\functions\sessions.php:97) in D:\wamp\www\cart\includes\functions\sessions.php on line 97 Warning: I am able to write to the configuration file: D:/wamp/www/cart/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. Warning: session_write_close() [function.session-write-close]: open(/tmp\sess_d1f742cf238dc7871f4dd19022abf552, O_RDWR) failed: No such file or directory (2) in D:\wamp\www\cart\includes\functions\sessions.php on line 136 Warning: session_write_close() [function.session-write-close]: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in D:\wamp\www\cart\includes\functions\sessions.php on line 136 Warning: session_start() [function.session-start]: open(/tmp\sess_5599c97866e7e73ab8929fccf7c2552d, O_RDWR) failed: No such file or directory (2) in D:\wamp\www\cart\admin\includes\functions\sessions.php on line 67 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\wamp\www\cart\admin\includes\functions\sessions.php:67) in D:\wamp\www\cart\admin\includes\functions\sessions.php on line 67 Warning: Unknown: open(/tmp\sess_5599c97866e7e73ab8929fccf7c2552d, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 :blink: :blink: :blink: :blink: :blink: :blink: :blink: :blink: :blink: :blink: Link to comment Share on other sites More sharing options...
Velveeta Posted March 2, 2007 Share Posted March 2, 2007 Looks like you've got some permissions issues... Most likely, you don't have access to read or write to the /tmp directory on the server, so it's either not creating the session file, or else you don't have access to open it for reading... I would suggest switching your session storage to the database, which is handled in your includes/configure.php file, just look to the bottom of the file and follow the instructions... Otherwise, you'll want to change your session directory in the admin console... In addition to that problem, your includes/configure.php are set as writeable currently, which is why you're getting that error about a security risk... Those files should be read-only anytime you're not making changes to them... So that'll need to be taken care of as well... Richard. Richard Lindsey Link to comment Share on other sites More sharing options...
boosters Posted March 2, 2007 Author Share Posted March 2, 2007 can u please tell me where should i change the setting, this is my configuration.php file. <?php /* osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] 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://localhost'); // eg, [url="http://localhost"]http://localhost[/url] - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, [url="https://localhost"]https://localhost[/url] - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'localhost'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/cart/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/cart/'); 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', 'D:/wamp/www/cart/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'root'); define('DB_SERVER_PASSWORD', ''); define('DB_DATABASE', 'cart'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> Link to comment Share on other sites More sharing options...
Velveeta Posted March 2, 2007 Share Posted March 2, 2007 Change this: define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' To this: define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' Richard. Richard Lindsey Link to comment Share on other sites More sharing options...
boosters Posted March 3, 2007 Author Share Posted March 3, 2007 thanks , but the problem is still there, 50% problem is solved , the error is giving there, Warning: I am able to write to the configuration file: D:/wamp/www/cart/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. and this error in the admin panel Warning: session_start() [function.session-start]: open(/tmp\sess_180fc0e10325be1389cedaaf37f1d9c7, O_RDWR) failed: No such file or directory (2) in D:\wamp\www\cart\admin\includes\functions\sessions.php on line 67 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at D:\wamp\www\cart\admin\includes\functions\sessions.php:67) in D:\wamp\www\cart\admin\includes\functions\sessions.php on line 67 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at D:\wamp\www\cart\admin\includes\functions\sessions.php:67) in D:\wamp\www\cart\admin\includes\functions\sessions.php on line 67 Warning: Unknown: open(/tmp\sess_180fc0e10325be1389cedaaf37f1d9c7, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 how to create a tmp directory. Can u please tell me , i am new in this business , i don't know everything. :'( Link to comment Share on other sites More sharing options...
Velveeta Posted March 3, 2007 Share Posted March 3, 2007 You have to make this change in your admin configure.php file also, which is at admin/includes/configure.php... And as for the other error, I told you how to fix that one in my first post, you need to keep your configure.php files set as read-only unless you're making a change to them, in which case you make them read-write for just long enough to make your changes, then make them read-only again... Richard. Richard Lindsey Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.