Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.3.7

Bug #11504 MDB2+Tree problem. MDB2 doesn't contains getTextValue method
Submitted: 2007-07-02 15:00 UTC
From: agorlov Assigned: dufuz
Status: Closed Package: Tree (version 0.3.1)
PHP Version: 5.1.6 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2007-07-02 15:00 UTC] agorlov (Alexandr Gorlov)
Description: ------------ PHP Fatal error: Call to undefined function: MDB2_Driver_mysql::getTextValue(). in /usr/share/pear/MDB2.php on line 1917 MDB2 doesn't have getTextValue method. Test script: --------------- #!/usr/bin/php <?php require_once '../config.php'; require_once 'Tree/Tree.php'; require_once 'myDB.php'; $mt = new myTreeApp(); $mt->createTree(); class myTreeApp { private $tree = null; public function __construct() { $this->tree = Tree::setup('Memory_MDB2nested', myDB::conn(), array('table' => 'companyCategory')); print_r($this->tree); } public function createTree() { $rootId = $this->tree->add( array( 'name' => '', ) ); if (PEAR::isError($rootId)) { print 'error adding root element: '.$rootId->getUserInfo(); } } public function dropTree() { } }

Comments

 [2007-07-03 14:43 UTC] rudis (Simon Ruderich)
I got the same error. After some looking into the code I found a solution. I attached the path. Hope this helps, Simon
 [2007-08-11 21:36 UTC] dufuz (Helgi Þormar)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.