Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7192487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:57:01+00:00 2026-05-28T19:57:01+00:00

I tried using Kohana/ORM on my localhost xampp and i get the following error

  • 0

I tried using Kohana/ORM on my localhost xampp and i get the following error

ErrorException [ Notice ]: Array to string conversion
MODPATH\orm\classes\kohana\orm.php [ 980 ]

975             }
976             else
977             {
978                 // List columns and mirror for performance
979                 $this->_table_columns = $this->list_columns();
980                 $this->_table_columns = array_combine($this->_table_columns, $this->_table_columns);
981 
982                 // Load column cache
983                 ORM::$_column_cache[$this->_object_name] = $this->_table_columns;
984             }
985         }

It seems to be a common error appearing in different Frameworks/PHP Applications, but I have not found any clue to fix it.

The Model is just the basic ORM

class Model_Product extends ORM {

}

The Mysql Table (InnoDB – UTF-8) has two fields
id – primary int
name – varchar 50

no voodoo anywhere, help is very appreciated

thanks in advance!

edit: the requested vardump

array(2) {
  ["id"]=>
  array(13) {
    ["type"]=>
    string(3) "int"
    ["min"]=>
    string(11) "-2147483648"
    ["max"]=>
    string(10) "2147483647"
    ["column_name"]=>
    string(2) "id"
    ["column_default"]=>
    NULL
    ["data_type"]=>
    string(3) "int"
    ["is_nullable"]=>
    bool(false)
    ["ordinal_position"]=>
    int(1)
    ["display"]=>
    string(2) "11"
    ["comment"]=>
    string(0) ""
    ["extra"]=>
    string(14) "auto_increment"
    ["key"]=>
    string(3) "PRI"
    ["privileges"]=>
    string(31) "select,insert,update,references"
  }
  ["name"]=>
  array(12) {
    ["type"]=>
    string(6) "string"
    ["column_name"]=>
    string(4) "name"
    ["column_default"]=>
    NULL
    ["data_type"]=>
    string(7) "varchar"
    ["is_nullable"]=>
    bool(false)
    ["ordinal_position"]=>
    int(2)
    ["character_maximum_length"]=>
    string(2) "50"
    ["collation_name"]=>
    string(15) "utf8_general_ci"
    ["comment"]=>
    string(0) ""
    ["extra"]=>
    string(0) ""
    ["key"]=>
    string(0) ""
    ["privileges"]=>
    string(31) "select,insert,update,references"
  }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T19:57:04+00:00Added an answer on May 28, 2026 at 7:57 pm

    I found a way to resolve this error, just declare the table colums in the model.

    protected $_table_columns = array(
        'column' => NULL,
        'names'  => NULL,
        'go'     => NULL,
        'here'   => NULL,
        ......
    );
    

    this will ged rid of the problem and increase performance as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried using "cap rollback" but I get the following error: $ cap rollback
I tried using Path.GetDirectoryName() but it doesn't work. What I'm trying to get is
I wrote a question earlier trying to get around using a controller in Kohana,
I tried using the following but apparently it's invalid SQL: CREATE OR REPLACE TRIGGER
I tried using the example code from my previous question . However I get
I tried using the answer posted by Chirag and Venkatesh in the following link:
tried using the following but it's not the solution controller: var list = new
Tried using the following: Populate Listview from JSON To make a listview which uses
I tried using the following snippet code to decode the animated gif file with
I tried using the ultimate CSS gradient generator and it produced the following: background:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.