Bug Report #3664

Fatal error: Undefined class constant 'ERROR' in "session.php" on line 371

Added by Nano Documet over 1 year ago. Updated over 1 year ago.

Status:Closed Start date:01/27/2011
Priority:High Due date:
Assignee:Kiall Mac Innes % 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

Revision 67e41ee6
Added by Kiall Mac Innes over 1 year ago

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 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

Also available in: Atom PDF