1

Temat: Problem z sesją

witam,

mam kolejny problem sad

na localhoscie wszystko gra. po wgraniu na serwer wywala blad

Warning (2): session_start() [function.session-start]: open(/tmp/sess_9ad60939583396d1518081af62555f09, O_RDWR) failed: No such file or directory (2) [CORE/cake/libs/session.php, line 547]

Code

session_start - [internal], line ??
CakeSession::__startSession() - CORE/cake/libs/session.php, line 547
CakeSession::start() - CORE/cake/libs/session.php, line 173
SessionComponent::__start() - CORE/cake/libs/controller/components/session.php, line 304
SessionComponent::startup() - CORE/cake/libs/controller/components/session.php, line 94
Component::startup() - CORE/cake/libs/controller/component.php, line 115
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 227
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 211
[main] - APP/webroot/index.php, line 88

Warning (2): session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /elite/cake/basics.php:111) [CORE/cake/libs/session.php, line 547]

Code

session_start - [internal], line ??
CakeSession::__startSession() - CORE/cake/libs/session.php, line 547
CakeSession::start() - CORE/cake/libs/session.php, line 173
SessionComponent::__start() - CORE/cake/libs/controller/components/session.php, line 304
SessionComponent::startup() - CORE/cake/libs/controller/components/session.php, line 94
Component::startup() - CORE/cake/libs/controller/component.php, line 115
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 227
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 211
[main] - APP/webroot/index.php, line 88

Warning (2): Cannot modify header information - headers already sent by (output started at /elite/cake/basics.php:111) [CORE/cake/libs/session.php, line 548]

Code

header - [internal], line ??
CakeSession::__startSession() - CORE/cake/libs/session.php, line 548
CakeSession::start() - CORE/cake/libs/session.php, line 173
SessionComponent::__start() - CORE/cake/libs/controller/components/session.php, line 304
SessionComponent::startup() - CORE/cake/libs/controller/components/session.php, line 94
Component::startup() - CORE/cake/libs/controller/component.php, line 115
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 227
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 211
[main] - APP/webroot/index.php, line 88

Warning (2): Cannot modify header information - headers already sent by (output started at /elite/cake/basics.php:111) [CORE/cake/libs/controller/components/cookie.php, line 364]

nie za bardzo wiem gdzie lezy przyczyna.

Prosze o pomoc.

pozdr.

2

Odp: Problem z sesją

Katalog /app/tmp - musi być odczytywalny i zapisywalny (podkatalogi też)

Jeśli używasz PHP do zapisywania sesji (plik app/config/core.php -> linia "Configure::write('Session.save', 'php');" ) to musisz zadbać aby katalog, gdzie php zapisuje sesje też był zapisywalny i odczytywalny.

Pozdrowienia

3

Odp: Problem z sesją

generalnie z tego co mi wiadomo skrypty na serwerach home.pl chodza" z prawami admina.
zmienilem konfiguracje zeby sesje zapisywal w bazie - dziala.

dzieki za pomoc.

pozdr.

4

Odp: Problem z sesją

rozwiazaniem przechowywania sesji przez php na serwerach home.pl (dobrze za napisales ze to home) jest utworzenie w miejscu gdzie prowadzi domena, katalogu 'tmp' nadajac mu prawa 777. Ta jakze wazna informacje mozna znalesc w dokumentacji
http://home.pl/dokumentacja...ale w ktorym miejscu..tego nie widza nawet najstarci indianie smile