Bug Report #3664
Fatal error: Undefined class constant 'ERROR' in "session.php" on line 371
| Status: | Closed | Start date: | 01/27/2011 | |
|---|---|---|---|---|
| Priority: | High | Due date: | ||
| Assignee: | % Done: | 100% |
||
| Category: | Core | |||
| Target version: | v3.1.0 | |||
| Resolution: | fixed | Points: |
Description
It seems that this was the old way to define the call for the log
https://github.com/kohana/core/blob/3.1%2Fdevelop/classes/kohana/session.php#L371
The line above shows
Kohana::$log->add(Kohana::ERROR, Kohana_Exception::text($e))->write();however there is no constant ERROR for Kohana Class, instead, it seems it should be the Log Class (Log::ERROR)
It is also at the Response Class
https://github.com/kohana/core/blob/3.1%2Fdevelop/classes/kohana/response.php#L655
Thanks.
Associated revisions
Fixing log constants - Refs #3664
History
Updated by Jeremy Bush over 1 year ago
- Assignee set to Kiall Mac Innes
- Priority changed from Normal to High
- Target version set to v3.1.0
Updated by Dmitry T. over 1 year ago
Please fix the docs also
https://github.com/kohana/core/blob/3.1%2Frelease%2F3.1.0/guide/kohana/tutorials/error-pages.md
Updated by Kiall Mac Innes over 1 year ago
- Category set to Core
- Status changed from New to Closed
- % Done changed from 0 to 100
- Resolution set to fixed