Guest Posted April 23, 2007 Share Posted April 23, 2007 After installing a new catalogue, I get the following warnings on opening osC and I am not sure how to resolve the issue: Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 33113 is not allowed to access owned by uid 0 in /home/shapely/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 /home/shapely/public_html/catalog/includes/functions/sessions.php:148) in /home/shapely/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 /home/shapely/public_html/catalog/includes/functions/sessions.php:148) in /home/shapely/public_html/catalog/includes/functions/sessions.php on line 97 In two cases it seems a case of "cart before the horse" in that the 'cannots' suggest line 148 has acted before line 97. Can any put me right? Lines 85-165 of installed sessions.php under: $session_data = session_get_cookie_params(); setcookie(tep_session_name(), '', time()-42000, $session_data['path'], $session_data['domain']); $sane_session_id = false; } } if ($sane_session_id == false) { tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false)); } return session_start(); } function tep_session_register($variable) { global $session_started; if ($session_started == true) { return session_register($variable); } else { return false; } } function tep_session_is_registered($variable) { return session_is_registered($variable); } function tep_session_unregister($variable) { return session_unregister($variable); } function tep_session_id($sessid = '') { if (!empty($sessid)) { return session_id($sessid); } else { return session_id(); } } function tep_session_name($name = '') { if (!empty($name)) { return session_name($name); } else { return session_name(); } } function tep_session_close() { if (PHP_VERSION >= '4.0.4') { return session_write_close(); } elseif (function_exists('session_close')) { return session_close(); } } function tep_session_destroy() { return session_destroy(); } function tep_session_save_path($path = '') { if (!empty($path)) { return session_save_path($path); } else { return session_save_path(); } } function tep_session_recreate() { if (PHP_VERSION >= 4.1) { $session_backup = $_SESSION; unset($_COOKIE[tep_session_name()]); tep_session_destroy(); if (STORE_SESSIONS == 'mysql') { session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc'); } Link to comment Share on other sites More sharing options...
Guest Posted May 20, 2007 Share Posted May 20, 2007 Hello, I have this problem :: Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script is not allowed to access a file owned by another uid in sessions.php on line 118 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/23/d/d/l/ddlesage.net/www/Boutique/includes/functions/sessions.php:118) in sessions.php on line 67 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/23/d/d/l/ddlesage.net/www/Boutique/includes/functions/sessions.php:118) in sessions.php on line 67 Have you got a solution for this problem... Thank you very much... Ps: I am French, and I speak about a young can English, sorry for the grammar... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.