big_bird Posted July 21, 2006 Share Posted July 21, 2006 I can't find an early post on this issue. Can somebody help me with this problem? The installation of OSCommerce was succesfull everything is working ok. I'm only get this error in the top of my site. Warning: session_save_path(): SAFE MODE Restriction in effect. The script whose uid is 4229 is not allowed to access owned by uid 0 in /sites/mysite.nl/www/webwinkel/catalog/includes/functions/sessions.php on line 148 Kind regards Rudolph Link to comment Share on other sites More sharing options...
Iggy Posted July 21, 2006 Share Posted July 21, 2006 Are you saving your sessions in the database or as files? If you don't know take a look at you /includes/configure.php and you should see a line at the bottom that looks like define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' If it already set for mysql head on over to the admin and under Configuration > Sessions you'll find a path there. Just delete it, save and see if that helps. HTH, Iggy Everything's funny but nothing's a joke... Link to comment Share on other sites More sharing options...
big_bird Posted July 21, 2006 Author Share Posted July 21, 2006 Are you saving your sessions in the database or as files? If you don't know take a look at you /includes/configure.php and you should see a line at the bottom that looks like define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' If it already set for mysql head on over to the admin and under Configuration > Sessions you'll find a path there. Just delete it, save and see if that helps. HTH, Iggy Thanks for your reply. I had already set the configuration to MySQL. I've tried to follow your instructions, but I think I made a mistake. What do you mean exactly with Configuration > Sessions. Where do I have to change the path in the script. What I did gave me an empty page with an error :) Link to comment Share on other sites More sharing options...
Iggy Posted July 21, 2006 Share Posted July 21, 2006 Hrrrm, In your admin under the Configuration set there are settings for, well, configuration. Seesions is one of them. Click on it and you'll see all the settings for sessions. The first one should be where your session files would be stored in the filesystem if not in mysql. Change that to nothing/blank. Also, looking at a stock includes/functions/sessions.php there isn't a line 148. Mine has 142 lines. Would you open that file up and paste it here? Iggy Everything's funny but nothing's a joke... Link to comment Share on other sites More sharing options...
big_bird Posted July 21, 2006 Author Share Posted July 21, 2006 Hrrrm, In your admin under the Configuration set there are settings for, well, configuration. Seesions is one of them. Click on it and you'll see all the settings for sessions. The first one should be where your session files would be stored in the filesystem if not in mysql. Change that to nothing/blank. That worked! :D Thnx Also, looking at a stock includes/functions/sessions.php there isn't a line 148. Mine has 142 lines. Would you open that file up and paste it here? Iggy This is line 140 till 172 ---------------------------- } 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'); } tep_session_start(); $_SESSION = $session_backup; unset($session_backup); } } ?> ------------------------------------------- Link to comment Share on other sites More sharing options...
Iggy Posted July 21, 2006 Share Posted July 21, 2006 Happy to help and glad it worked out! Iggy Everything's funny but nothing's a joke... Link to comment Share on other sites More sharing options...
mandelism Posted July 22, 2006 Share Posted July 22, 2006 haha..thankyu Iggy, didnt know it was this easy :P lolz. tanks!! Link to comment Share on other sites More sharing options...
Mavericker255 Posted July 22, 2006 Share Posted July 22, 2006 please help me a ihave this error but in configuration i havent sesions path because i select in installation sesions path to mysql please help Link to comment Share on other sites More sharing options...
Mavericker255 Posted July 22, 2006 Share Posted July 22, 2006 Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 15557 is not allowed to access owned by uid 0 in /domains1/ws223700/public/www_root/includes/functions/sessions.php on line 147 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /domains1/ws223700/public/www_root/includes/functions/sessions.php:147) in /domains1/ws223700/public/www_root/includes/functions/sessions.php on line 97 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /domains1/ws223700/public/www_root/includes/functions/sessions.php:147) in /domains1/ws223700/public/www_root/includes/functions/sessions.php on line 97 Link to comment Share on other sites More sharing options...
Iggy Posted July 22, 2006 Share Posted July 22, 2006 Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 15557 is not allowed to access owned by uid 0 in /domains1/ws223700/public/www_root/includes/functions/sessions.php on line 147 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /domains1/ws223700/public/www_root/includes/functions/sessions.php:147) in /domains1/ws223700/public/www_root/includes/functions/sessions.php on line 97 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /domains1/ws223700/public/www_root/includes/functions/sessions.php:147) in /domains1/ws223700/public/www_root/includes/functions/sessions.php on line 97 If you can't access your admin at all you can delete the sessions dir entry from the database directly either from the command line or using something like phpMyAdmin. Find the entry in your database in the table configuration > configuration id 136 (at least for me) > Session Directory and delete the entry for the path there. It's probably /tmp If you can access your admin just follow the instructions in the posts above. HTH, Iggy Everything's funny but nothing's a joke... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.