Kohana3 - ErrorException [ Notice ]: Undefined index: id - Error calling Auth::instance()
- by ahmet2106
Hello everybody,
I've now a Problem with the newest Version of KohanaPHP (kohanaphp.com).
After I've registered me and logged in into my test page, some minutes later, there is now the error:
ErrorException [ Notice ]: Undefined index: id
MODPATH/orm/classes/kohana/orm.php [ 1316 ]
1311 *
1312 * @return mixed primary key
1313 */
1314 public function pk()
1315 {
1316 return $this->_object[$this->_primary_key];
1317 }
1318
1319 /**
1320 * Returns whether or not primary key is empty
1321 *
I've searched a lot in Google, but i never found an answer, the Problem now is, that I cant reloggin to get a new instance, because I've to call Auth::instance()-login() again, and Auth::instance() is not callable.
Whats todo now, how can I fix it, is there already a new Version of ORM or Auth Module?
Thanks everybody
Ahmet