Nette\InvalidStateException session_start(): Function spl_autoload_call() hasn't defined the class it was call
Notice: This thread is very old.
- bazo
- Member | 620
PHP 5.6.4–1~dotdeb.1
nginx/1.6.2
opera 12.17
nette dev-master 966412af50f62db12b9c1bfc52c5f404265d5b46 pre 2.3beta
when accessing our app from Opera browser, nette throws this exception when initializing session
public function initialize()
5755: {
5756: date_default_timezone_set('Europe/Bratislava');
5757: $this->getByType("Nette\Http\Session")->start();
when accessing the app from firefox or chrome, everything works ok
has anyone ever experienced this error? because i have no idea what it means and how to fix this.
Last edited by bazo (2015-02-09 17:16)
- David Grudl
- Nette Core | 8218
I guess you stored object to session and when session is started, required class is not loaded.
- Jan Tvrdík
- Nette guru | 2595
@bazo What is the value of
ini_get('unserialize_callback_func')
? You may also use this the
determine the problematic class:
ini_set('unserialize_callback_func', 'foobar');
function foobar($class) {
var_dump($class);
}