Forums / Developer / REST (oauthadmin/list)
Håvard Bergersen
Thursday 28 July 2011 7:21:53 am
When trying to access this view in admin i get this error message:could not find driver in[...]/handler.php on line 88
Anyone else had this problem?
The function that breaks looks like this:
public function __construct( $dbParams, $dsn ) { $user = null; $pass = null; $driverOptions = null; foreach ( $dbParams as $key => $val ) { switch ( $key ) { case 'user': case 'username': $user = $val; break; case 'pass': case 'password': $pass = $val; break; case 'driver-opts': $driverOptions = $val; break; } } // THIS IS THE LINE THAT BREAKS parent::__construct( $dsn, $user, $pass, $driverOptions ); $this->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION ); $this->setAttribute( PDO::ATTR_CASE, PDO::CASE_LOWER ); }
Gaetano Giunta
Thursday 28 July 2011 8:22:23 am
You are most likely missing the pdo driver in your php.
(Please do not ask me why the devs decided to go with ezcdb and pdo instead of using the plain ezdb connector...)
Principal Consultant International Business Member of the Community Project Board
Thursday 28 July 2011 8:27:36 am
Ahh,, ok.. I will get my serverAdmins to fix this and try again. :)
Thanks so much for the reply..
Jérôme Vieilledent
Thursday 28 July 2011 8:54:10 am
Because it's "nextgen" code ;-)