Guest Posted September 25, 2007 Share Posted September 25, 2007 Hi folks, Have just installed 2.2 RC1 and I am receiving the following on all normal catalogue pages Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid is 10014 is not allowed to access owned by uid 0 in .../httpdocs/catalog/includes/functions/sessions.php on line 162 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at .../httpdocs/catalog/includes/functions/sessions.php:162) in .../httpdocs/catalog/includes/functions/sessions.php on line 97 and when trying to get to catalog/admin/ I get Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid is 10014 is not allowed to access owned by uid 0 in .../httpdocs/catalog/admin/includes/functions/sessions.php on line 161 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at .../httpdocs/catalog/admin/includes/functions/sessions.php:161) in .../httpdocs/catalog/admin/includes/functions/sessions.php on line 97 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at .../httpdocs/catalog/admin/includes/functions/sessions.php:161) in .../httpdocs/catalog/admin/includes/functions/sessions.php on line 97 Warning: Cannot modify header information - headers already sent by (output started at .../httpdocs/catalog/admin/includes/functions/sessions.php:161) in .../httpdocs/catalog/admin/includes/functions/general.php on line 22 I have cleared any white spaces from the sessions.php (to remove a previous error) already. Could anyone advise. Thanks Link to comment Share on other sites More sharing options...
Guest Posted September 25, 2007 Share Posted September 25, 2007 Hi folks, Have just installed 2.2 RC1 and I am receiving the following on all normal catalogue pages Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid is 10014 is not allowed to access owned by uid 0 in .../httpdocs/catalog/includes/functions/sessions.php on line 162 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at .../httpdocs/catalog/includes/functions/sessions.php:162) in .../httpdocs/catalog/includes/functions/sessions.php on line 97 and when trying to get to catalog/admin/ I get Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid is 10014 is not allowed to access owned by uid 0 in .../httpdocs/catalog/admin/includes/functions/sessions.php on line 161 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at .../httpdocs/catalog/admin/includes/functions/sessions.php:161) in .../httpdocs/catalog/admin/includes/functions/sessions.php on line 97 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at .../httpdocs/catalog/admin/includes/functions/sessions.php:161) in .../httpdocs/catalog/admin/includes/functions/sessions.php on line 97 Warning: Cannot modify header information - headers already sent by (output started at .../httpdocs/catalog/admin/includes/functions/sessions.php:161) in .../httpdocs/catalog/admin/includes/functions/general.php on line 22 I have cleared any white spaces from the sessions.php (to remove a previous error) already. Could anyone advise. Thanks Well, I had a somewhat similar problem when I was first installing oscommece 2.2RC1 I needed to find a file from the CONTRIBUTION's section called "catalognoglobals" and then go and edit the /configure.php and /sessions.php files as described below(instrutions follow with the contribution) Coping the contribution over to your server and editing these 'sessions' parameters made it all work well for me, I hope that this helps to work for you too. ------------------------------------------------------------------------------------------------------------------------------------------- "Warning: session_save_path() [function.session-save-path]: SAFE MODE" ------------------------------------------------------------------------------------------------------------------------------------------- 1) In catalog/includes/configure.php ensure that the last line is set to define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' 2) In catalog/includes/functions/sessions.php find: function tep_session_save_path($path = '') { if (!empty($path)) { return session_save_path($path); } else { return session_save_path(); } } Change to: function tep_session_save_path($path = '') { if (STORE_SESSIONS != 'mysql') { // added this line to turn off this checking if storing session info in db if (!empty($path)) { return session_save_path($path); } else { return session_save_path(); } } } You can also apply the same fix to the admin section. 1) In catalog/admin/includes/configure.php ensure that the last line is set to define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' 2) In catalog/admin/includes/functions/sessions.php find: function tep_session_save_path($path = '') { if ($path != '') { return session_save_path($path); } else { return session_save_path(); } } Change to: function tep_session_save_path($path = '') { if (STORE_SESSIONS != 'mysql') { // added this line to turn off this checking if storing session info in db if ($path != '') { return session_save_path($path); } else { return session_save_path(); } } } Link to comment Share on other sites More sharing options...
Mysterix Posted September 28, 2007 Share Posted September 28, 2007 Thanks, I had the same problem. Link to comment Share on other sites More sharing options...
Guest Posted October 1, 2007 Share Posted October 1, 2007 Thanks for that. I couldn't find the contrib, but amended the files. Still no joy, so I uploaded the install dir again and did a fresh install. Now works fine. Thank you for your time and response Link to comment Share on other sites More sharing options...
Guest Posted October 4, 2007 Share Posted October 4, 2007 no joy, so I uploaded the install dir again and did a fresh install. Now works fine. I am glad that things ended up working out for you. Sorry that my information didn't help this case. I ended up renaming the unzipped patch on my computer - I couldn't find the contribIf ANYBODY needs this help, I found the correct contrubution page - http://addons.oscommerce.com/info/2097(make sure to read the authors header information from Sept 25, 2007 - it states to use the original V1.5 patch from Sept 05, 2006), Easy instructions are packaged in the file. Link to comment Share on other sites More sharing options...
Guest Posted October 18, 2007 Share Posted October 18, 2007 Thankyou This Solved My Problem :-) Link to comment Share on other sites More sharing options...
longsp Posted January 29, 2009 Share Posted January 29, 2009 Hi. i got same problem. how to solve it? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.