help – Failed to read session data

9 days ago

winman1
Member | 10
+
0
-

hi guys,

when run http://localhost/…atagrid/www/
i got such error:

Nette\InvalidStateException

Failed to read session data: files (path: D:\Bitnami\wampstack-7.3.9–0\apache2\htdocs\contributte-datagrid\app/../temp/sessions)

error at $this->getService(‘session.session’)->start(); from nette generated container

public function initialize()
{
$this->getService(‘tracy.bar’)->addPanel(new Nette\Bridges\DITracy\ContainerPanel($this));
(function () {
$response = $this->getService(‘http.response’);
$response->setHeader(‘X-Powered-By’, ‘Nette Framework 3’);
$response->setHeader(‘Content-Type’, ‘text/html; charset=utf-8’);
$response->setHeader(‘X-Frame-Options’, ‘SAMEORIGIN’);
$response->setCookie(‘nette-samesite’, ‘1’, 0, ‘/’, null, null, true, ‘Strict’);
})();
Tracy\Debugger::getLogger()->mailer = [new Tracy\Bridges\Nette\MailSender($this->getService(‘mail.mailer’), null), ‘send’];
$this->getService(‘session.session’)->start();
Tracy\Debugger::dispatch();
 }

composer.json
“require”: {
“php”: “>= 7.1”,
“nette/application”: “^3.0”,
“nette/bootstrap”: “^3.0”,
“nette/caching”: “^3.0”,
“nette/database”: “^3.0”,
“nette/di”: “^3.0”,
“nette/finder”: “^3.0”,
“nette/forms”: “^3.0”,
“nette/http”: “^3.0”,
“nette/mail”: “^3.0”,
“nette/security”: “^3.0”,
“nette/utils”: “^3.0”,
“latte/latte”: “^3.0”,
“tracy/tracy”: “^3.0”,
“ublaboo/datagrid” : “^6.0”,
“dibi/dibi”: “^3.0.0 || ^4.0.0”
},
same error appears when i set session autostart to false :)
session:
name: TESTXYZ
debugger: true
expiration: 14 days
savePath: “%tempDir%/sessions”
autoStart: false

please give me a hint :)
thank you very much.

7 days ago

dkorpar
Member | 73
+
+1
-

just create that directory…
D:\Bitnami\wampstack-7.3.9–0\apache2\htdocs\contributte-datagrid/temp/sessions

7 days ago

winman1
Member | 10
+
0
-

hi @dkorpar

i tried to create the dir temp/sessions but the error still shown :)

thx for the idea.

7 days ago

Michal Hlávka
Member | 181
+
0
-

What about permissions?