PDA

View Full Version : Cannot find save handler /tmp



Stamser
07-22-2007, 08:17 AM
Hello guy's, i have a problem installing a shop cart...
The installation part going ok and tell me installed complete OK, whene i'll go to index page i see the Warning: session_start error.

Can you tell me what problem is this please? (someone is tell me the problem is in PHP.ini file, but i don't know how to fixed!)



Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/stamosne/public_html/stam/admin/config.php:1) in /home/stamosne/public_html/stam/include/class.sessions.php on line 28

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/stamosne/public_html/stam/admin/config.php:1) in /home/stamosne/public_html/stam/include/class.sessions.php on line 28

Warning: Cannot modify header information - headers already sent by (output started at /home/stamosne/public_html/stam/admin/config.php:1) in /home/stamosne/public_html/stam/global.php on line 169

charlesgan
07-22-2007, 01:28 PM
php write session data into cookies.. do you make sure your browser can accept cookies??

Stamser
07-22-2007, 01:44 PM
Yes, i accept cookies my browser!

charlesgan
07-22-2007, 01:48 PM
how about the
register_globals = ON ???

Stamser
07-22-2007, 01:51 PM
I have it off now, but befor 2 hours i have it on and i have same problem again!

Stamser
07-22-2007, 01:53 PM
It is posible to give the PHP.ini file from my server to take a look if you can?

PS: I can paste here in post the code from PHP.ini!!!

Stamser
07-23-2007, 04:40 AM
Anyone to help please with this problem ?

Stamser
07-23-2007, 01:10 PM
No one knows any solution for this problem???? No one? :(

adddfico
07-24-2007, 06:58 AM
Limited knowledge in php so..ya..

Only time I've seen this is if have a php page that sends the headers, then includes another php page that tries to send the headers again. The server doesn't know what to do about this second set of headers so it chokes and dies.

charlesp
07-24-2007, 08:42 AM
You can try output buffering. Start your code like so;
<?php
ob_start();
session_start;
Then the rest of your code
at the end of your code add
ob_flush();

Stamser
07-24-2007, 11:22 AM
Same error :( (thanks for your answer!)

rvelices
07-25-2007, 12:05 PM
It seems obvious
check your config.php at line 1
you should have no space or carriage return before <?php