PDA

View Full Version : PHP warning messages?


cosumel
02-15-2008, 03:42 PM
I am getting the following errors at the top of my page for OsCommerce shopping cart. Is there anything I can do about them, or are they errors caused by restrictions inherent in this sites TOS?

========================
Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 1001 is not allowed to access /tmp owned by uid 0 in /hosted/domains/c/h/charityshopping.net/public_html/catalog/includes/functions/sessions.php on line 169

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /hosted/domains/c/h/charityshopping.net/public_html/catalog/includes/functions/sessions.php:169) in /hosted/domains/c/h/charityshopping.net/public_html/catalog/includes/functions/sessions.php on line 102
========================

UnlimitedMB
02-15-2008, 08:56 PM
The temp folder is /tmp/php not /tmp

cosumel
02-16-2008, 02:53 PM
That section of the code reads:

function tep_session_save_path($path = '') {
if (!empty($path)) {
return session_save_path($path);
} else {
return session_save_path();
}

What am I missing? This one has me baffled.

UnlimitedMB
02-16-2008, 03:31 PM
change it to

function tep_session_save_path($path = '') {
return session_save_path();
}