osCommerce trouble

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
abc123
Forum Newbie
Posts: 2
Joined: Fri Sep 22, 2006 1:17 am

osCommerce trouble

Post 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 !
User avatar
thomas777neo
Forum Contributor
Posts: 214
Joined: Mon Mar 10, 2003 6:12 am
Location: Johannesburg,South Africa

Post 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"
abc123
Forum Newbie
Posts: 2
Joined: Fri Sep 22, 2006 1:17 am

Post 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 ! :)
User avatar
thomas777neo
Forum Contributor
Posts: 214
Joined: Mon Mar 10, 2003 6:12 am
Location: Johannesburg,South Africa

Post by thomas777neo »

Glad I could help

All the best
Post Reply