Note that there are some explanatory texts on larger screens.

plurals
  1. POKohana ORM: Array to string conversion Error
    text
    copied!<p>I tried using Kohana/ORM on my localhost xampp and i get the following error</p> <p>ErrorException [ Notice ]: Array to string conversion MODPATH\orm\classes\kohana\orm.php [ 980 ]</p> <pre><code>975 } 976 else 977 { 978 // List columns and mirror for performance 979 $this-&gt;_table_columns = $this-&gt;list_columns(); 980 $this-&gt;_table_columns = array_combine($this-&gt;_table_columns, $this-&gt;_table_columns); 981 982 // Load column cache 983 ORM::$_column_cache[$this-&gt;_object_name] = $this-&gt;_table_columns; 984 } 985 } </code></pre> <p>It seems to be a common error appearing in different Frameworks/PHP Applications, but I have not found any clue to fix it.</p> <p>The Model is just the basic ORM</p> <pre><code>class Model_Product extends ORM { } </code></pre> <p>The Mysql Table (InnoDB - UTF-8) has two fields id - primary int name - varchar 50</p> <p>no voodoo anywhere, help is very appreciated</p> <p>thanks in advance!</p> <p>edit: the requested vardump</p> <pre><code>array(2) { ["id"]=&gt; array(13) { ["type"]=&gt; string(3) "int" ["min"]=&gt; string(11) "-2147483648" ["max"]=&gt; string(10) "2147483647" ["column_name"]=&gt; string(2) "id" ["column_default"]=&gt; NULL ["data_type"]=&gt; string(3) "int" ["is_nullable"]=&gt; bool(false) ["ordinal_position"]=&gt; int(1) ["display"]=&gt; string(2) "11" ["comment"]=&gt; string(0) "" ["extra"]=&gt; string(14) "auto_increment" ["key"]=&gt; string(3) "PRI" ["privileges"]=&gt; string(31) "select,insert,update,references" } ["name"]=&gt; array(12) { ["type"]=&gt; string(6) "string" ["column_name"]=&gt; string(4) "name" ["column_default"]=&gt; NULL ["data_type"]=&gt; string(7) "varchar" ["is_nullable"]=&gt; bool(false) ["ordinal_position"]=&gt; int(2) ["character_maximum_length"]=&gt; string(2) "50" ["collation_name"]=&gt; string(15) "utf8_general_ci" ["comment"]=&gt; string(0) "" ["extra"]=&gt; string(0) "" ["key"]=&gt; string(0) "" ["privileges"]=&gt; string(31) "select,insert,update,references" } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload