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 !
osCommerce trouble
Moderator: General Moderators
- thomas777neo
- Forum Contributor
- Posts: 214
- Joined: Mon Mar 10, 2003 6:12 am
- Location: Johannesburg,South Africa
When a session is created a file is written to a directory specified in the php.ini
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"
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.session.save_path = "\xampp\tmp"
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"
thomas777neo wrote:When a session is created a file is written to a directory specified in the php.ini
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.session.save_path = "\xampp\tmp"
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 !
- thomas777neo
- Forum Contributor
- Posts: 214
- Joined: Mon Mar 10, 2003 6:12 am
- Location: Johannesburg,South Africa