开发者

Kohana3 - ErrorException [ Notice ]: Undefined index: id - Error calling Auth::instance()

开发者 https://www.devze.com 2022-12-29 21:32 出处:网络
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:

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 the开发者_Python百科re already a new Version of ORM or Auth Module?

Thanks everybody Ahmet


That error occurs after a fatal error ( anywhere ), but I think it happens only in older versions of Kohana3. Delete your cookies after this occurs.

Try downloading the latest version of Kohana 3 again

EDIT:

You can get more info on this bug here

0

精彩评论

暂无评论...
验证码 换一张
取 消