Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: session_save_path


Guest

Recommended Posts

Posted

Hi all. I've just installed my very first osCommerce, and want to try this out. It's installed here at http://www.autonordic.com/catalog/

I get this warning:

 

Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 939 is not allowed to access /tmp owned by uid 0 in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 148

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php:148) in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 97

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php:148) in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 97

 

Is this a normal install error ? Any advice for me ?

Posted

Hi all. I've just installed my very first osCommerce, and want to try this out. It's installed here at http://www.autonordic.com/catalog/

I get this warning:

 

Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 939 is not allowed to access /tmp owned by uid 0 in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 148

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php:148) in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 97

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php:148) in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 97

 

Is this a normal install error ? Any advice for me ?

Posted
Hi all. I've just installed my very first osCommerce, and want to try this out. It's installed here at http://www.autonordic.com/catalog/

I get this warning:

Is this a normal install error ? Any advice for me ?

 

Hi Robert and welcome to OSC!

 

If you look at the bottom of your configure file where does it say you are storing sessions?

 

You will find the file in

 

includes/configure.php

 

If you are storing in MySql change it to read

 

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

 

Regards

 

Mark

Posted
Hi Robert and welcome to OSC!

If you look at the bottom of your configure file where does it say you are storing sessions?

You will find the file in

includes/configure.php

If you are storing in MySql change it to read

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

Regards

Mark

 

Hi Mark, and thanks for a quick reply.

 

Im not sure what you mean about changing it to READ ? (you want me to chmod the file to 444 ? which it already is !)

Im tried to remove the 'mysql' and left it blank, and now the error code is as follow

 

Warning: session_start() [function.session-start]: open(tmp/sess_5928c550035eb0100c7669706f93d459, O_RDWR) failed: No such file or directory (2) in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 97

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php:97) in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 97

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php:97) in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 97

Warning: The sessions directory does not exist: tmp. Sessions will not work until this directory is created.

 

Any more advice for me ?

 

Kind regards Robert

Posted
Hi Robert and welcome to OSC!

If you look at the bottom of your configure file where does it say you are storing sessions?

You will find the file in

includes/configure.php

If you are storing in MySql change it to read

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

Regards

Mark

 

Hi Mark, and thanks for a quick reply.

 

Im not sure what you mean about changing it to READ ? (you want me to chmod the file to 444 ? which it already is !)

Im tried to remove the 'mysql' and left it blank, and now the error code is as follow

 

Warning: session_start() [function.session-start]: open(tmp/sess_5928c550035eb0100c7669706f93d459, O_RDWR) failed: No such file or directory (2) in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 97

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php:97) in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 97

 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php:97) in /var/www/autonordic.com/public_html/catalog/includes/functions/sessions.php on line 97

Warning: The sessions directory does not exist: tmp. Sessions will not work until this directory is created.

 

Any more advice for me ?

 

Kind regards Robert

Posted
Go to Admin > Configuration > Sessions and change the "Sessions Directory" to tmp (no slashes)

 

 

Perfect.. All warning is now gone, the next problem is that there is no password or username promt when accesing http://www.autonordic.com/catalog/admin/

 

 

And then i looked into the ducomentation.pdf which comes with the download, and there it says as follow

 

You need to .htaccess your /catalog/admin directory so that it is password protected. You

can use the password manager in your server admin area like cpanel.

 

My host is using phpMyAdmin - 2.10.0.2, and i can not find anything about the .htaccess file anywhere ?

 

Any advice to this matter ?

Posted
Go to Admin > Configuration > Sessions and change the "Sessions Directory" to tmp (no slashes)

 

 

Perfect.. All warning is now gone, the next problem is that there is no password or username promt when accesing http://www.autonordic.com/catalog/admin/

 

 

And then i looked into the ducomentation.pdf which comes with the download, and there it says as follow

 

You need to .htaccess your /catalog/admin directory so that it is password protected. You

can use the password manager in your server admin area like cpanel.

 

My host is using phpMyAdmin - 2.10.0.2, and i can not find anything about the .htaccess file anywhere ?

 

Any advice to this matter ?

Posted
Go to Admin > Configuration > Sessions and change the "Sessions Directory" to tmp (no slashes)

it is a bad thing to do placing the sessions directory within the www space. It should be a qualified path outside the www space.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...