Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


Mushfique

Recommended Posts

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....

Link to comment
Share on other sites

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

[/url]

My Contributions

Link to comment
Share on other sites

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 ((((((

Link to comment
Share on other sites

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 (((((

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

 

 

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

 

try to run this via phpmyadmin

Link to comment
Share on other sites

  • 7 months later...
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 back up before making changes.

Link to comment
Share on other sites

  • 3 months later...

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..........

Link to comment
Share on other sites

  • 2 years later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...