eZ Community » Forums » Developer » REST (oauthadmin/list)
expandshrink

REST (oauthadmin/list)

REST (oauthadmin/list)

Thursday 28 July 2011 4:21:53 pm - 3 replies

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 );
    }

Modified on Thursday 28 July 2011 4:24:21 pm by Håvard Bergersen

Thursday 28 July 2011 5:22:23 pm

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...)

Thursday 28 July 2011 5:27:36 pm

Ahh,, ok.. I will get my serverAdmins to fix this and try again. happy.gif Emoticon

Thanks so much for the reply..

Modified on Thursday 28 July 2011 5:27:50 pm by Håvard Bergersen

Thursday 28 July 2011 5:54:10 pm

(Please do not ask me why the devs decided to go with ezcdb and pdo instead of using the plain ezdb connector...)

Because it's "nextgen" code blunk.gif Emoticon

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from