Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect


18 replies to this topic

#1 Mushfique

  • Community Member
  • 3 posts
  • Real Name:Mushfiqur Rahman

Posted 08 January 2009, 17:07

I am new in OSC. I was trying to install osc in zymic.com ( a free web hosting site ). I have installed my store properly there. After installation when I go to my site by clicking catalog button ( before that I had done some task such as change the permission of two configure file from catalog->includes->configure.php and catalog->admin->includes->configure.php and then delete the install folder ) I saw some Warnings. Those are:

Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 12859 is not allowed to access /tmp owned by uid 0 in /www/uuuq.com/n/o/n/nonamenoname/htdocs/catalog/includes/functions/sessions.php on line 169

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /www/uuuq.com/n/o/n/nonamenoname/htdocs/catalog/includes/functions/sessions.php:169) in /www/uuuq.com/n/o/n/nonamenoname/htdocs/catalog/includes/functions/sessions.php on line 102

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /www/uuuq.com/n/o/n/nonamenoname/htdocs/catalog/includes/functions/sessions.php:169) in /www/uuuq.com/n/o/n/nonamenoname/htdocs/catalog/includes/functions/sessions.php on line 102


For convenient I am giving my site address here so that one can see it and can give me proper suggestions. My store address nonamenoname.uuuq.com/catalog

The another problem is the admin panel. When I try to access that page it gives me some Warnings. Those are:


Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 12859 is not allowed to access /tmp owned by uid 0 in /www/uuuq.com/n/o/n/nonamenoname/htdocs/catalog/admin/includes/functions/sessions.php on line 165

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /www/uuuq.com/n/o/n/nonamenoname/htdocs/catalog/admin/includes/functions/sessions.php:165) in /www/uuuq.com/n/o/n/nonamenoname/htdocs/catalog/admin/includes/functions/sessions.php on line 102

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /www/uuuq.com/n/o/n/nonamenoname/htdocs/catalog/admin/includes/functions/sessions.php:165) in /www/uuuq.com/n/o/n/nonamenoname/htdocs/catalog/admin/includes/functions/sessions.php on line 102

Warning: Cannot modify header information - headers already sent by (output started at /www/uuuq.com/n/o/n/nonamenoname/htdocs/catalog/admin/includes/functions/sessions.php:165) in /www/uuuq.com/n/o/n/nonamenoname/htdocs/catalog/admin/includes/functions/general.php on line 22


I am waiting for somebody's quick response. I would be happy if anybody give me any fair suggestions about zymic.com or other free web hosting sites....

#2 FIMBLE

  • Community Member
  • 6,567 posts
  • Real Name:Nic
  • Gender:Male

Posted 08 January 2009, 19:08

UPDATE `configuration` SET `configuration_value` = 'tmp' WHERE `configuration`.`configuration_id`;

try to run this via phpmyadmin
Sometimes you're the dog and sometimes the lamp post

My Contributions

#3 kievbugs

  • Community Member
  • 5 posts
  • Real Name:Serg

Posted 09 January 2009, 09:31

Also have the same problem as Mushfique. UPDATE does not helping. Any others comments?
Thanks

#4 FIMBLE

  • Community Member
  • 6,567 posts
  • Real Name:Nic
  • Gender:Male

Posted 09 January 2009, 09:41

View Postkievbugs, on Jan 9 2009, 09:31 AM, said:

Also have the same problem as Mushfique. UPDATE does not helping. Any others comments?
Thanks


Hi Check your
catalog / includes / configure.php
admin / includes / configure.php files
make sure, right at the bottom you have this

define('STORE_SESSIONS', 'mysql');
and not
define('STORE_SESSIONS', '');
Sometimes you're the dog and sometimes the lamp post

My Contributions

#5 kievbugs

  • Community Member
  • 5 posts
  • Real Name:Serg

Posted 09 January 2009, 09:44

View PostFIMBLE, on Jan 9 2009, 09:41 AM, said:

Hi Check your
catalog / includes / configure.php
admin / includes / configure.php files
make sure, right at the bottom you have this

define('STORE_SESSIONS', 'mysql');
and not
define('STORE_SESSIONS', '');

Done. Nothing change ((((((

#6 FIMBLE

  • Community Member
  • 6,567 posts
  • Real Name:Nic
  • Gender:Male

Posted 09 January 2009, 09:47

Which lines are you getting the error on?
Sometimes you're the dog and sometimes the lamp post

My Contributions

#7 kievbugs

  • Community Member
  • 5 posts
  • Real Name:Serg

Posted 09 January 2009, 09:57

View PostFIMBLE, on Jan 9 2009, 09:47 AM, said:

Which lines are you getting the error on?

All like in first post

Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 7888 is not allowed to access owned by uid 0 in /sata1/home/users/bravo/www/test.bravvo.com.ua/catalog/includes/functions/sessions.php on line 169

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /sata1/home/users/bravo/www/test.bravvo.com.ua/catalog/includes/functions/sessions.php:169) in /sata1/home/users/bravo/www/test.bravvo.com.ua/catalog/includes/functions/sessions.php on line 102

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /sata1/home/users/bravo/www/test.bravvo.com.ua/catalog/includes/functions/sessions.php:169) in /sata1/home/users/bravo/www/test.bravvo.com.ua/catalog/includes/functions/sessions.php on line 102

And cant reach to admin part at all (((((

#8 maylat

  • Community Member
  • 1 posts
  • Real Name:mario

Posted 09 January 2009, 10:01

View Postkievbugs, on Jan 9 2009, 10:57 AM, said:

All like in first post

Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 7888 is not allowed to access owned by uid 0 in /sata1/home/users/bravo/www/test.bravvo.com.ua/catalog/includes/functions/sessions.php on line 169

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /sata1/home/users/bravo/www/test.bravvo.com.ua/catalog/includes/functions/sessions.php:169) in /sata1/home/users/bravo/www/test.bravvo.com.ua/catalog/includes/functions/sessions.php on line 102

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /sata1/home/users/bravo/www/test.bravvo.com.ua/catalog/includes/functions/sessions.php:169) in /sata1/home/users/bravo/www/test.bravvo.com.ua/catalog/includes/functions/sessions.php on line 102

And cant reach to admin part at all (((((

i have the vary same problem i can get into admin page i test in free hsoting
Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 3702 is not allowed to access owned by uid 0 in /www/blackapplehost.com/m/a/y/maylat/htdocs/catalog/admin/includes/functions/sessions.php on line 161

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /www/blackapplehost.com/m/a/y/maylat/htdocs/catalog/admin/includes/functions/sessions.php:161) in /www/blackapplehost.com/m/a/y/maylat/htdocs/catalog/admin/includes/functions/sessions.php on line 97

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /www/blackapplehost.com/m/a/y/maylat/htdocs/catalog/admin/includes/functions/sessions.php:161) in /www/blackapplehost.com/m/a/y/maylat/htdocs/catalog/admin/includes/functions/sessions.php on line 97

Warning: Cannot modify header information - headers already sent by (output started at /www/blackapplehost.com/m/a/y/maylat/htdocs/catalog/admin/includes/functions/sessions.php:161) in /www/blackapplehost.com/m/a/y/maylat/htdocs/catalog/admin/includes/functions/general.php on line 22

Free Hosting by BlackAppleHost.com

#9 FIMBLE

  • Community Member
  • 6,567 posts
  • Real Name:Nic
  • Gender:Male

Posted 09 January 2009, 10:03

admin/includes/functions/sessions.php on line 161

at the begining of this line then add @
its only a warning and no show stopper the @ sign will silence it

do the same far any mor warnings you have
Sometimes you're the dog and sometimes the lamp post

My Contributions

#10 kievbugs

  • Community Member
  • 5 posts
  • Real Name:Serg

Posted 09 January 2009, 10:19

View PostFIMBLE, on Jan 9 2009, 10:03 AM, said:

admin/includes/functions/sessions.php on line 161

at the begining of this line then add @
its only a warning and no show stopper the @ sign will silence it

do the same far any mor warnings you have
((((((((((((((( nothing

#11 FIMBLE

  • Community Member
  • 6,567 posts
  • Real Name:Nic
  • Gender:Male

Posted 09 January 2009, 10:21

Serg in your case it was line 169
Sometimes you're the dog and sometimes the lamp post

My Contributions

#12 kievbugs

  • Community Member
  • 5 posts
  • Real Name:Serg

Posted 09 January 2009, 10:31

View PostFIMBLE, on Jan 9 2009, 10:21 AM, said:

Serg in your case it was line 169
))))) I understand))))
But nothing (((((((((((

#13 FIMBLE

  • Community Member
  • 6,567 posts
  • Real Name:Nic
  • Gender:Male

Posted 09 January 2009, 10:50

You need to contact your hosts then serg.
Ask then to turn off Sare mode
Nic
Sometimes you're the dog and sometimes the lamp post

My Contributions

#14 FIMBLE

  • Community Member
  • 6,567 posts
  • Real Name:Nic
  • Gender:Male

Posted 09 January 2009, 10:53

You might also try this first

add

php_flag safe_mode off

to your htaccess file

if that does not work try

php_value safe_mode off

NIc
Sometimes you're the dog and sometimes the lamp post

My Contributions

#15 Mushfique

  • Community Member
  • 3 posts
  • Real Name:Mushfiqur Rahman

Posted 09 January 2009, 16:34

View PostFIMBLE, on Jan 9 2009, 05:03 PM, said:

admin/includes/functions/sessions.php on line 161

at the begining of this line then add @
its only a warning and no show stopper the @ sign will silence it

do the same far any mor warnings you have


First of all I want to give thanks to nic for his/her helps. My problem has solved by Nic's tips. But I couldn't understood Nic's first reply. Which file should I update?

Whatever I solved my problem by putting an @ in front of the line which creates the first warning. I have done same for admin and solved it. But one important thing is that you have to put @ symbol after the keyword return. If you put @ in front of return it will generate another error.

Now I have a question: Putting @ in front of those lines has solved my problems. But how. What does this symbol( @ ) means here? Would you please explain the functionality of this symbol and then the procedure of first reply? Another thing is I had uploaded my .htaccess file in my host directory but I cant find it there. I tried this few times. But always the same result.

Finally Thanks should go for Nic.


View PostFIMBLE, on Jan 9 2009, 02:08 AM, said:

UPDATE `configuration` SET `configuration_value` = 'tmp' WHERE `configuration`.`configuration_id`;

try to run this via phpmyadmin

Edited by Mushfique, 09 January 2009, 16:38.


#16 ecartz

  • Community Member
  • 1,919 posts
  • Real Name:Matt
  • Gender:Male

Posted 04 September 2009, 01:30

View PostMushfique, on Jan 9 2009, 12:34 PM, said:

Now I have a question: Putting @ in front of those lines has solved my problems. But how. What does this symbol( @ ) means here? Would you please explain the functionality of this symbol and then the procedure of first reply?
This is old, but in case anyone sees this and wonders: The @ sign means, don't tell me if you have any warnings or notifications; I don't want to hear it. If there is an actual error, the page will still not show, but it will just ignore warnings and carry on. The problem with a warning in this context is that it is displayed before PHP has sent all the headers. This closes sending headers (because the warning is content and not a header), so the next time osCommerce tries to send a header, it actually creates an error because of the warning being sent first. Shutting off the warning allows things to continue.

You will also see the @ in front of the setlocale command in many language files. This is because this command often has incorrect syntax for the particular host (the syntax required is determined by server configuration and has many possible values) but the default settings are good enough, so it's not worth correcting the syntax to override the default syntax.

In regards to .htaccess, some hosts don't display files that begin with a dot (which are sometimes called hidden files in unix) by default. If you go through the settings in your FTP or SFTP client, you can probably force "hidden" files to display.
Always backup before making changes.

#17 beautifullife

  • Community Member
  • 1 posts
  • Real Name:Dung Nguyen
  • Gender:Male
  • Location:Ho Chi Minh

Posted 25 December 2009, 16:43

Fix: Goto Admin / Configuration / Sessions and change the “Sessions Directory” to tmp (no slashes)

If you can’t get into Admin, goto your Database Admin page (usually PhPAdmin app.)
Click on any table on the left hand side.
Click on SQL at the top of the screen
Overtype whatever appears in the SQL window with …
UPDATE configuration SET configuration_value = ‘tmp’ WHERE configuration_key=’SESSION_WRITE_DIRECTORY’
---------------
Cuoc doi la nhung giac mo
Ma long nguoi thong nhieu mo uoc..........

#18 manisha

  • Community Member
  • 3 posts
  • Real Name:manisha

Posted 17 January 2012, 07:41

thanks put it as like return @session_start(); it will not give any kind of error...

#19 patrickluursema

  • Community Member
  • 41 posts
  • Real Name:Patrick Luursema

Posted 22 January 2012, 11:26

This also solved my problem.
Regards,

Patrick Luursema