6.0.0-beta1
8/10/25

[#3049] Cannot use object of type DB_mysql as array in DataTree.php on line 590
Summary Cannot use object of type DB_mysql as array in DataTree.php on line 590
Queue Horde.org Servers
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester horde (at) expires-200501 (dot) dpits (dot) com
Created 11/27/2005 (7196 days ago)
Due
Updated 04/16/2007 (6691 days ago)
Assigned 11/27/2005 (7196 days ago)
Resolved 11/27/2005 (7196 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/16/2007 02:14:25 PM m (dot) lang (at) sits-online (dot) de Comment #7 Reply to this comment
thank you for your fast reply, i did the follow:



~# pear install DB

downloading DB-1.7.11.tgz ...

Starting to download DB-1.7.11.tgz (132,064 bytes)

.....................done: 132,064 bytes

install ok: channel://pear.php.net/DB-1.7.11





but no changes, the same bug again :( any idea?
04/16/2007 02:08:37 PM Chuck Hagenbuch Comment #6 Reply to this comment
04/16/2007 02:00:31 PM m (dot) lang (at) sits-online (dot) de Comment #5 Reply to this comment
User resolved by upgrading DB package.
what DB package you mean? i have the same bug, but i don't have any 
idea what can i do..
12/31/2005 09:31:38 PM support (at) wowko (dot) com Comment #4 Reply to this comment

[Show Quoted Text - 176 lines]
11/27/2005 11:05:42 PM Chuck Hagenbuch Comment #3
State ⇒ Not A Bug
Reply to this comment
User resolved by upgrading DB package.
11/27/2005 01:55:44 PM Jan Schneider Comment #2
State ⇒ Feedback
Priority ⇒ 2. Medium
Reply to this comment
As mentioned on the list, this might be a bug in DB. Try updating.
11/27/2005 12:58:27 PM horde (at) expires-200501 (dot) dpits (dot) com Comment #1
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ Cannot use object of type DB_mysql as array in DataTree.php on line 590
Queue ⇒ Horde.org Servers
State ⇒ Unconfirmed
Reply to this comment
After Update from php-5.0.5 to php-5.1.0 i have this error in 
Horde/IMP (when viewing Inbox):



Cannot use object of type DB_mysql as array in 
/horde/lib/Horde/DataTree.php on line 590



584    function set($data, $charset = null)

585    {

586        $cats = array();

587        $cids = array();

588        foreach ($data as $cat) {

589            if (!is_null($charset)) {

590                $cat[1] = String::convertCharset($cat[1], $charset);

591            }



in php-5.0.5 var_dump($cat) shows:

array(4) { [0]=>  string(1) "1" [1]=>  string(14) "my@email.de" [2]=>   
string(0) "" [3]=>  NULL }



in php-5.1.0 var_dump($cat) shows:

object(DB_mysql)#18 (25) {

   ["connection"]=>

   resource(29) of type (mysql link)

   ["phptype"]=>

   string(5) "mysql"

   ["dbsyntax"]=>

   string(5) "mysql"

   ["prepare_tokens"]=>

   array(0) {

   }

   ["prepare_types"]=>

   array(0) {

   }

   ["num_rows"]=>

   array(2) {

     [115]=>

     int(1)

     [117]=>

     int(1)

   }

   ["transaction_opcount"]=>

   int(0)

   ["autocommit"]=>

   bool(true)

   ["fetchmode"]=>

   int(1)

   ["_db"]=>

   string(5) "horde"

   ["features"]=>

   array(4) {

     ["prepare"]=>

     bool(false)

     ["pconnect"]=>

     bool(true)

     ["transactions"]=>

     bool(true)

     ["limit"]=>

     string(5) "alter"

   }

   ["errorcode_map"]=>

   array(17) {

     [1004]=>

     int(-15)

     [1005]=>

     int(-15)

     [1006]=>

     int(-15)

     [1007]=>

     int(-5)

     [1008]=>

     int(-17)

     [1022]=>

     int(-5)

     [1046]=>

     int(-14)

     [1050]=>

     int(-5)

     [1051]=>

     int(-18)

     [1054]=>

     int(-19)

     [1062]=>

     int(-5)

     [1064]=>

     int(-2)

     [1100]=>

     int(-21)

     [1136]=>

     int(-22)

     [1146]=>

     int(-18)

     [1048]=>

     int(-3)

     [1216]=>

     int(-3)

   }

   ["prepared_queries"]=>

   array(0) {

   }

   ["prepare_maxstmt"]=>

   int(0)

   ["last_query"]=>

   string(171) "SELECT datatree_id, datatree_name, datatree_parents, 
datatree_order FROM horde_datatree WHERE datatree_id IN (1, 0) AND 
group_uid = 'horde.shares.nag' ORDER BY datatree_id"

   ["fetchmode_object_class"]=>

   string(8) "stdClass"

   ["options"]=>

   array(7) {

     ["persistent"]=>

     bool(false)

     ["ssl"]=>

     bool(false)

     ["debug"]=>

     int(0)

     ["seqname_format"]=>

     string(6) "%s_seq"

     ["autofree"]=>

     bool(false)

     ["portability"]=>

     int(17)

     ["optimize"]=>

     string(11) "performance"

   }

   ["dbh"]=>

   NULL

   ["_debug"]=>

   bool(false)

   ["_default_error_mode"]=>

   NULL

   ["_default_error_options"]=>

   NULL

   ["_default_error_handler"]=>

   string(0) ""

   ["_error_class"]=>

   string(8) "DB_Error"

   ["_expected_errors"]=>

   array(0) {

   }

   ["dsn"]=>

   array(15) {

     ["phptype"]=>

     string(5) "mysql"

     ["dbsyntax"]=>

     string(5) "mysql"

     ["username"]=>

     string(5) "horde"

     ["password"]=>

     string(7) "xxxxx"

     ["protocol"]=>

     string(3) "tcp"

     ["hostspec"]=>

     string(9) "localhost"

     ["port"]=>

     int(3306)

     ["socket"]=>

     bool(false)

     ["database"]=>

     string(5) "horde"

     ["persistent"]=>

     bool(false)

     ["charset"]=>

     string(10) "iso-8859-1"

     ["driverconfig"]=>

     string(5) "horde"

     ["group"]=>

     string(16) "horde.shares.nag"

     ["table"]=>

     string(14) "horde_datatree"

     ["table_attributes"]=>

     string(25) "horde_datatree_attributes"

   }

}





thankyou...

Saved Queries