Page 1 of 1

osCommerce trouble

Posted: Fri Sep 22, 2006 1:29 am
by abc123
I have a osCommerce code. But when I run, it show some errors and warnning.
I recive some eorros such as:
Warning: session_start(): open(/tmp\sess_d91fdf4d3af8ba86cc6649a2d2967bcc, O_RDWR) failed: No such file or directory (2) in E:\www\os5\includes\functions\sessions.php on line 67

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at E:\www\os5\includes\functions\sessions.php:67) in E:\www\os5\includes\functions\sessions.php on line 67

And some warning:
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at E:\www\os5\includes\functions\sessions.php:67) in E:\www\os5\includes\functions\sessions.php on line 67

Warning: I am able to write to the configuration file: E:/www/os5/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.
Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.

Please help me. Thanks !

Posted: Fri Sep 22, 2006 2:08 am
by thomas777neo
When a session is created a file is written to a directory specified in the php.ini
session.save_path = "\xampp\tmp"
You need to make sure the folder exists and that there are sufficient rights. Also make sure that you use / (Linux) or \ (windows) according to the operating system you are using.

If there are still issues, make sure there are no errors or echoes before the session_start() function is called. As it would result in this error "Cannot send session cache limiter - headers already sent"

Posted: Sun Sep 24, 2006 8:37 pm
by abc123
thomas777neo wrote:When a session is created a file is written to a directory specified in the php.ini
session.save_path = "\xampp\tmp"
You need to make sure the folder exists and that there are sufficient rights. Also make sure that you use / (Linux) or \ (windows) according to the operating system you are using.

If there are still issues, make sure there are no errors or echoes before the session_start() function is called. As it would result in this error "Cannot send session cache limiter - headers already sent"

Thank you very much ! :)

Posted: Mon Sep 25, 2006 2:43 pm
by thomas777neo
Glad I could help

All the best