Bug Report #4352

Array to string conversion Error

Added by Tim Rottmann about 3 years ago. Updated over 2 years ago.

Status:ClosedStart date:12/01/2011
Priority:UrgentDue date:
Assignee:Isaiah DeRose-Wilson% Done:


Target version:Kohana v3.x - v3.1.5
Resolution:invalid Points:1


  • Windows
  • xampp
  • PHP 5.3.8
  • Apache/2.2.21 (Win32)

Having a basic Model that just extends the ORM class creates an array to string conversion error in lines 931,980 of kohana/orm.php

// Create an array with all the columns set to NULL
$values = array_combine($this->_table_columns, array_fill(0, count($this->_table_columns), NULL)); // LINE 931
// List columns and mirror for performance
$this->_table_columns = $this->list_columns();
$this->_table_columns = array_combine($this->_table_columns, $this->_table_columns); // LINE 980
Mysql Table (innoDB)
  • id - int
  • name - varchar(50)


#1 Updated by Isaiah DeRose-Wilson over 2 years ago

  • Status changed from New to Closed
  • Assignee set to Isaiah DeRose-Wilson
  • Target version set to v3.1.5
  • % Done changed from 0 to 100
  • Resolution set to invalid

It looks like something is wrong with your model. $this->_table_columns should never be a string.

Also available in: Atom PDF